diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-05-09 17:04:36 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-05-09 17:04:36 +0400 |
commit | 7e93f5569db733a0d7a7bb30b1075266a0247cec (patch) | |
tree | ff1255ddf5b5a2e0108d5a0f2794294042c23f41 /source/blender/src/buttons_object.c | |
parent | 6a97a2ab33b84a7f95616b1923227eb6c61ae156 (diff) |
Fix for bug #10475: added more dependencies for physics systems
with deflectors and fields for proper dependency graph updates.
Diffstat (limited to 'source/blender/src/buttons_object.c')
-rw-r--r-- | source/blender/src/buttons_object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/buttons_object.c b/source/blender/src/buttons_object.c index c71caa082e7..919187a4abe 100644 --- a/source/blender/src/buttons_object.c +++ b/source/blender/src/buttons_object.c @@ -3208,6 +3208,7 @@ static void object_collision__enabletoggle ( void *ob_v, void *arg2 ) { md = modifier_new ( eModifierType_Collision ); BLI_addtail ( &ob->modifiers, md ); + DAG_scene_sort(G.scene); DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); allqueue(REDRAWBUTSEDIT, 0); allqueue(REDRAWVIEW3D, 0); @@ -3215,8 +3216,10 @@ static void object_collision__enabletoggle ( void *ob_v, void *arg2 ) } else { + DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); BLI_remlink ( &ob->modifiers, md ); modifier_free ( md ); + DAG_scene_sort(G.scene); allqueue(REDRAWBUTSEDIT, 0); } } |