Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-11-19 06:45:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-19 06:45:45 +0300
commitd4a2972a21d025481f70b7c1b5c66595eb57cfe1 (patch)
treec6e6a463c8d81f790be0e3d148d5e8fe14a936e9 /source/blender/makesrna/intern/rna_main_api.c
parentc1664dd78e8a31d891a311ef600b95452dfd4003 (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/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c3
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);
}