Bugfix #25750
authorTon Roosendaal <ton@blender.org>
Sat, 29 Jan 2011 18:37:40 +0000 (18:37 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 29 Jan 2011 18:37:40 +0000 (18:37 +0000)
CTRL+L link modifiers (actually, it copies!) didn't call an update
for new dependencies.

source/blender/editors/object/object_relations.c

index 704efb59d3de57448ea3686574c93547b258478e..b2edd786d50f00cfbd70cdc411db46fe45b66650 100644 (file)
@@ -1301,6 +1301,8 @@ static int make_links_data_exec(bContext *C, wmOperator *op)
        }
        CTX_DATA_END;
 
+       DAG_scene_sort(bmain, CTX_data_scene(C));
+       
        DAG_ids_flush_update(bmain, 0);
        WM_event_add_notifier(C, NC_SPACE|ND_SPACE_VIEW3D, CTX_wm_view3d(C));
        return OPERATOR_FINISHED;