From ea012a3340920f54d628faf856fb7493a40a3d6c Mon Sep 17 00:00:00 2001 From: Janne Karhu Date: Mon, 7 Feb 2011 11:55:24 +0000 Subject: [PATCH] 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. --- source/blender/editors/object/object_add.c | 2 ++ 1 file changed, 2 insertions(+) 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; }