Stricter check for setting posemode. It is possible to have armatures

linked around to more scenes, which confuses the POSEMODE object flag.

Now posemode is only entered on file read when it is also the active
object.
This commit is contained in:
Ton Roosendaal 2005-05-30 13:20:13 +00:00
parent 139106ca85
commit 51640e61b6

@ -385,7 +385,10 @@ static void setup_app_data(BlendFileData *bfd, char *filename)
for(base= G.scene->base.first; base; base=base->next) { for(base= G.scene->base.first; base; base=base->next) {
ob= base->object; ob= base->object;
if(ob->flag & OB_POSEMODE) { if(ob->flag & OB_POSEMODE) {
if(ob->type==OB_ARMATURE) G.obpose= ob; if(ob->type==OB_ARMATURE && G.scene->basact && G.scene->basact->object==ob)
G.obpose= ob;
else
ob->flag &= ~OB_POSEMODE;
} }
} }