Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2011-02-07 14:55:24 +0300
committerJanne Karhu <jhkarh@gmail.com>2011-02-07 14:55:24 +0300
commitea012a3340920f54d628faf856fb7493a40a3d6c (patch)
tree5451b8b9baf79c631eb0511d43e2a98242f355d9 /source/blender/editors/object
parenta399e8c7bb375b7a69f82244aafcf1a754a74eec (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/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c2
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;
}