diff options
author | Chris Want <cwant@ualberta.ca> | 2004-01-20 08:12:42 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2004-01-20 08:12:42 +0300 |
commit | 1942e4897ebe84a09757f998773016f18289b141 (patch) | |
tree | 66d238c6a777b295926615b36dd9961ceb7c6001 | |
parent | 57b91ddce887e097b1f1c7ca5f502c0ec2ffa084 (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.c | 11 |
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; |