From 03f1b94e0238899757579ade582e2e69ad4e0a01 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 24 Oct 2017 18:22:42 +0200 Subject: Fix crash changing settings of operator executed in different scene Steps to reproduce were: * Open Blender, create a new scene * Go back to initial scene, transform object * Switch back to newly created scene, change operator settings there * Should cause a crash (at least with asan) Should behave like 2.7 now, that is, switch scene back to where operator was executed. --- source/blender/blenkernel/intern/blendfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/blendfile.c') diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c index e1350aa8a46..211f92c2e78 100644 --- a/source/blender/blenkernel/intern/blendfile.c +++ b/source/blender/blenkernel/intern/blendfile.c @@ -216,6 +216,7 @@ static void setup_app_data( wmWindowManager *wm = bfd->main->wm.first; if (wm_scene_is_visible(wm, bfd->curscene) == false) { curscene = bfd->curscene; + win->scene = curscene; BKE_screen_view3d_scene_sync(curscreen, curscene); } } -- cgit v1.2.3