From 828cab295eac2b13dbc361f1cb87608924ccad47 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 2 Apr 2006 12:45:55 +0000 Subject: Bugfix #4046 Copying constraints should refresh the dependency graph, otherwise the new relations don't get calculated properly. --- source/blender/src/editobject.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 81813ebea7a..a7626da621d 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -2722,6 +2722,7 @@ void copy_attr(short event) Curve *cu, *cu1; Nurb *nu; void *poin1, *poin2=0; + int do_scene_sort= 0; if(G.scene->id.lib) return; @@ -2938,6 +2939,8 @@ void copy_attr(short event) copy_constraint_channels(&base->object->constraintChannels, &ob->constraintChannels); else clone_constraint_channels (&base->object->constraintChannels, &ob->constraintChannels); + + do_scene_sort= 1; } else if(event==23) { base->object->softflag= ob->softflag; @@ -2980,6 +2983,9 @@ void copy_attr(short event) } allqueue(REDRAWVIEW3D, 0); + if(do_scene_sort) + DAG_scene_sort(G.scene); + DAG_scene_flush_update(G.scene, screen_view3d_layers()); if(event==20) { -- cgit v1.2.3