* 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
This commit is contained in:
Matt Ebb 2009-11-05 09:57:43 +00:00
parent 63d6d6cb74
commit 0b2bc7785d
3 changed files with 7 additions and 2 deletions

@ -208,7 +208,7 @@ class IMAGE_MT_uvs(bpy.types.Menu):
layout.itemS()
layout.itemR(settings, "proportional_editing")
layout.item_menu_enumR(settings, "proportional_editing")
layout.item_menu_enumR(settings, "proportional_editing_falloff")
layout.itemS()

@ -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:

@ -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 */
}