Bug fix 2309

Move calls to exit editmode and posemode to "set_scene()". Was causing
errors when, in posemode, switching to empty scene.
This commit is contained in:
2005-03-11 18:24:15 +00:00
parent 7a0e2a012c
commit 409e0a5c82
2 changed files with 3 additions and 3 deletions

View File

@@ -64,6 +64,9 @@ void set_scene(Scene *sce) /* also see scene.c: set_scene_bg() */
{
bScreen *sc;
if( G.obedit) exit_editmode(2);
if(G.obpose) exit_posemode(1);
G.scene= sce;
sc= G.main->screen.first;