The "Pose unlock" flag accidentally could get saved in file, causing

grabbing bones not to work. Only happened sofar in 1 file... but still
annoying!
This commit is contained in:
2005-11-01 20:58:37 +00:00
parent 14e24d1f75
commit 0883f12a6b

View File

@@ -783,8 +783,11 @@ static void createTransPose(TransInfo *t, Object *ob)
if(t->total==0) return; if(t->total==0) return;
t->flag |= T_POSE; t->flag |= T_POSE;
t->poseobj= ob; // we also allow non-active objects to be transformed, in weightpaint t->poseobj= ob; /* we also allow non-active objects to be transformed, in weightpaint */
/* make sure the lock is set OK, unlock can be accidentally saved? */
ob->pose->flag |= POSE_LOCKED; ob->pose->flag |= POSE_LOCKED;
ob->pose->flag &= ~POSE_DO_UNLOCK;
/* init trans data */ /* init trans data */
td = t->data = MEM_callocN(t->total*sizeof(TransData), "TransPoseBone"); td = t->data = MEM_callocN(t->total*sizeof(TransData), "TransPoseBone");