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:
authorTon Roosendaal <ton@blender.org>2006-04-02 16:45:55 +0400
committerTon Roosendaal <ton@blender.org>2006-04-02 16:45:55 +0400
commit828cab295eac2b13dbc361f1cb87608924ccad47 (patch)
treec6ce44a587c603fa434299380fb276a6deb38bb3
parent9e53e4ee470055348fb1351297b80ba8f8d99b9a (diff)
Bugfix #4046
Copying constraints should refresh the dependency graph, otherwise the new relations don't get calculated properly.
-rw-r--r--source/blender/src/editobject.c6
1 files changed, 6 insertions, 0 deletions
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) {