diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-19 06:45:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-19 06:45:45 +0300 |
commit | d4a2972a21d025481f70b7c1b5c66595eb57cfe1 (patch) | |
tree | c6e6a463c8d81f790be0e3d148d5e8fe14a936e9 /source/blender/makesrna/intern | |
parent | c1664dd78e8a31d891a311ef600b95452dfd4003 (diff) |
bugfix [#24803] Export UV Layout in PNG (default) corrupts Blendfile
Removing a scene would set the active scene, assuming the scene removed was the current scene. This broke UV Export which used a temp background scene.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index 018fc4b7777..71fe63c9e9c 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -118,7 +118,8 @@ void rna_Main_scenes_remove(Main *bmain, bContext *C, ReportList *reports, struc return; } - ED_screen_set_scene(C, newscene); + if(CTX_wm_screen(C)->scene == scene) + ED_screen_set_scene(C, newscene); unlink_scene(bmain, scene, newscene); } |