Bugfix #4699
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user