Fixed the "bones on invisible layers, that are constrained to objects on

visible layers, don't move during transform()" bug.
This commit is contained in:
Chris Want 2004-01-20 05:12:42 +00:00
parent 57b91ddce8
commit 1942e4897e

@ -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;