diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-02-07 14:55:24 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-02-07 14:55:24 +0300 |
commit | ea012a3340920f54d628faf856fb7493a40a3d6c (patch) | |
tree | 5451b8b9baf79c631eb0511d43e2a98242f355d9 /source | |
parent | a399e8c7bb375b7a69f82244aafcf1a754a74eec (diff) |
Bug fix: adding force fields from the add menu didn't sort the depsgaph, so hair didn't update straight away to force field settings changes.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index eee17bc78ef..536e21b8f97 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -404,6 +404,8 @@ static Object *effector_add_type(bContext *C, wmOperator *op, int type) ob->pd= object_add_collision_fields(type); + DAG_scene_sort(CTX_data_main(C), CTX_data_scene(C)); + return ob; } |