Missing dependency graph update on establishing a new relationship between
a static particle system and a curve guide, with the pulldown button in the
"Fields and Deflection" panel.
This commit is contained in:
2006-07-23 08:49:19 +00:00
parent 9868544a41
commit a01e81cf7d

View File

@@ -1906,16 +1906,20 @@ void do_effects_panels(unsigned short event)
} }
break; break;
case B_FIELD_DEP: case B_FIELD_DEP:
DAG_scene_sort(G.scene); /* do this before scene sort, that one checks for CU_PATH */
DAG_object_flush_update(G.scene, ob, OB_RECALC_OB);
if(ob->type==OB_CURVE && ob->pd->forcefield==PFIELD_GUIDE) { if(ob->type==OB_CURVE && ob->pd->forcefield==PFIELD_GUIDE) {
Curve *cu= ob->data; Curve *cu= ob->data;
cu->flag |= (CU_PATH|CU_3D); cu->flag |= (CU_PATH|CU_3D);
do_curvebuts(B_CU3D); /* all curves too */ do_curvebuts(B_CU3D); /* all curves too */
DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA);
} }
DAG_scene_sort(G.scene);
if(ob->type==OB_CURVE && ob->pd->forcefield==PFIELD_GUIDE)
DAG_object_flush_update(G.scene, ob, OB_RECALC);
else
DAG_object_flush_update(G.scene, ob, OB_RECALC_OB);
allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWBUTSOBJECT, 0); allqueue(REDRAWBUTSOBJECT, 0);
break; break;