forked from bartvdbraak/blender
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:
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user