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
path: root/source
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-11-05 12:57:43 +0300
committerMatt Ebb <matt@mke3.net>2009-11-05 12:57:43 +0300
commit0b2bc7785deda39647c832ba022a14d337155802 (patch)
tree6a5c9a580bb10ca00327c4959f88aeaefa9dc9f4 /source
parent63d6d6cb742ab741e91126e5055f3172f6dacad1 (diff)
* Fix for [#19700] undo doesn't display visual feedback on lattices
Depgraph update was commented out in undo system because of globals, restored this with new context/id-based depgraph * Fix in UV editor UV menu * Slightly nicer default names for adding forcefields with Add menu
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_add.c3
-rw-r--r--source/blender/editors/util/editmode_undo.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 63bb3f87480..80426fd6a49 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -264,6 +264,7 @@ static Object *effector_add_type(bContext *C, wmOperator *op, int type)
if(type==PFIELD_GUIDE) {
ob= ED_object_add_type(C, OB_CURVE, view_align, FALSE);
+ rename_id(&ob->id, "CurveGuide");
((Curve*)ob->data)->flag |= CU_PATH|CU_3D;
ED_object_enter_editmode(C, 0);
@@ -274,6 +275,8 @@ static Object *effector_add_type(bContext *C, wmOperator *op, int type)
}
else {
ob= ED_object_add_type(C, OB_EMPTY, view_align, FALSE);
+ rename_id(&ob->id, "Field");
+
switch(type) {
case PFIELD_WIND:
case PFIELD_VORTEX:
diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c
index 2d73a9f1d25..5fb93b0f8ec 100644
--- a/source/blender/editors/util/editmode_undo.c
+++ b/source/blender/editors/util/editmode_undo.c
@@ -240,6 +240,7 @@ static void undo_clean_stack(bContext *C)
/* 1= an undo, -1 is a redo. we have to make sure 'curundo' remains at current situation */
void undo_editmode_step(bContext *C, int step)
{
+ Object *obedit= CTX_data_edit_object(C);
/* prevent undo to happen on wrong object, stack can be a mix */
undo_clean_stack(C);
@@ -266,8 +267,9 @@ void undo_editmode_step(bContext *C, int step)
if(G.f & G_DEBUG) printf("redo %s\n", curundo->name);
}
}
+
+ DAG_id_flush_update(&obedit->id, OB_RECALC_DATA);
-// DAG_id_flush_update(&obedit->id, OB_RECALC_DATA);
/* XXX notifiers */
}