Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-11-07 19:49:46 +0300
committerTon Roosendaal <ton@blender.org>2004-11-07 19:49:46 +0300
commit0f84375d7afeccdaeb7a84af16aa46b1a521286f (patch)
treea5a1e1eafe4fd50f87114896b7e441113b237fe2 /source/blender/src/buttons_logic.c
parentc702b237d5f9a542c1d327e1c87a5b7e7ec81590 (diff)
Lotsa undo stuff added;
- ALT+U undo menu shows history for global undo as well - Added undo pushes for buttons window more consistantly - Added it & tested for ipowindow too - Added it in outliner - And quite some missing occasions for 3d window editing
Diffstat (limited to 'source/blender/src/buttons_logic.c')
-rw-r--r--source/blender/src/buttons_logic.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/src/buttons_logic.c b/source/blender/src/buttons_logic.c
index bef16fb6987..3719a5cf225 100644
--- a/source/blender/src/buttons_logic.c
+++ b/source/blender/src/buttons_logic.c
@@ -124,6 +124,7 @@ static void del_property(void *selpropv, void *data2_unused)
a++;
prop= prop->next;
}
+ BIF_undo_push("Delete property");
allqueue(REDRAWBUTSLOGIC, 0);
}
@@ -251,6 +252,7 @@ static void sca_move_sensor(void *datav, void *data2_unused)
BLI_remlink(&base->object->sensors, sens);
BLI_insertlink(&base->object->sensors, sens->next, sens);
}
+ BIF_undo_push("Move sensor");
allqueue(REDRAWBUTSLOGIC, 0);
break;
}
@@ -289,6 +291,7 @@ static void sca_move_controller(void *datav, void *data2_unused)
BLI_remlink(&base->object->controllers, cont);
BLI_insertlink(&base->object->controllers, cont->next, cont);
}
+ BIF_undo_push("Move controller");
allqueue(REDRAWBUTSLOGIC, 0);
break;
}
@@ -327,6 +330,7 @@ static void sca_move_actuator(void *datav, void *data2_unused)
BLI_remlink(&base->object->actuators, act);
BLI_insertlink(&base->object->actuators, act->next, act);
}
+ BIF_undo_push("Move actuator");
allqueue(REDRAWBUTSLOGIC, 0);
break;
}
@@ -379,6 +383,7 @@ void do_logic_buts(unsigned short event)
prop= new_property(PROP_FLOAT);
make_unique_prop_names(prop->name);
BLI_addtail(&ob->prop, prop);
+ BIF_undo_push("Add property");
allqueue(REDRAWBUTSLOGIC, 0);
break;
@@ -409,6 +414,7 @@ void do_logic_buts(unsigned short event)
base= base->next;
}
+ BIF_undo_push("Add sensor");
allqueue(REDRAWBUTSLOGIC, 0);
break;
@@ -443,6 +449,7 @@ void do_logic_buts(unsigned short event)
}
base= base->next;
}
+ BIF_undo_push("Delete sensor");
allqueue(REDRAWBUTSLOGIC, 0);
break;
@@ -458,6 +465,7 @@ void do_logic_buts(unsigned short event)
}
base= base->next;
}
+ BIF_undo_push("Add controller");
allqueue(REDRAWBUTSLOGIC, 0);
break;
@@ -494,6 +502,7 @@ void do_logic_buts(unsigned short event)
}
base= base->next;
}
+ BIF_undo_push("Delete controller");
allqueue(REDRAWBUTSLOGIC, 0);
break;
@@ -509,6 +518,7 @@ void do_logic_buts(unsigned short event)
}
base= base->next;
}
+ BIF_undo_push("Add actuator");
allqueue(REDRAWBUTSLOGIC, 0);
break;
@@ -544,6 +554,7 @@ void do_logic_buts(unsigned short event)
}
base= base->next;
}
+ BIF_undo_push("Delete actuator");
allqueue(REDRAWBUTSLOGIC, 0);
break;