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:
authorChris Want <cwant@ualberta.ca>2004-01-20 08:12:42 +0300
committerChris Want <cwant@ualberta.ca>2004-01-20 08:12:42 +0300
commit1942e4897ebe84a09757f998773016f18289b141 (patch)
tree66d238c6a777b295926615b36dd9961ceb7c6001
parent57b91ddce887e097b1f1c7ca5f502c0ec2ffa084 (diff)
Fixed the "bones on invisible layers, that are constrained to objects on
visible layers, don't move during transform()" bug.
-rw-r--r--source/blender/src/editobject.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 56620554efc..868ae003a83 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -3019,7 +3019,13 @@ static void setbaseflags_for_editing(int mode) /* 0,'g','r','s' */
for (base= FIRSTBASE; base; base= base->next) {
base->flag &= ~(BA_PARSEL+BA_WASSEL);
-
+
+ /* Recalculate the pose if necessary, regardless of
+ * whether the layer is visible or not.
+ */
+ if (pose_do_update_flag(base->object))
+ base->flag |= BA_WHERE_UPDATE;
+
if( (base->lay & G.vd->lay) && base->object->id.lib==0) {
Object *ob= base->object;
Object *parsel= is_a_parent_selected(ob);
@@ -3039,9 +3045,6 @@ static void setbaseflags_for_editing(int mode) /* 0,'g','r','s' */
base->flag |= BA_PARSEL;
}
- if (pose_do_update_flag(base->object))
- base->flag |= BA_WHERE_UPDATE;
-
/* updates? */
if(ob->type==OB_IKA) {
Ika *ika= ob->data;