Fix #29568: Blender restores deleted scene
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 6 Jan 2012 17:32:20 +0000 (17:32 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 6 Jan 2012 17:32:20 +0000 (17:32 +0000)
commit491fe9df19714d9373614cb71b68dc98116380e4
treed6fc8e2713ce02de7f63f22d5976ac4a2a05b692
parent5ba14fd210355e0bbff7746cdc58ec96b7a489de
Fix #29568: Blender restores deleted scene

Special notifiers used for scene deletion which lead to undo pushes
after SCENE_OT_delete operator happening with scene still present in
the mainfile. That was a reason why operator redo used to restore
scene.

It's not so obvious why special notifier type is needed for scene
set and deletion -- it confuses undo system without having some
obvious advantages. Using "direct" scene deletion and setting
seems to be working fine so let's see if there'll be some issues
with this.
source/blender/editors/screen/screen_ops.c
source/blender/makesrna/intern/rna_screen.c
source/blender/windowmanager/intern/wm_event_system.c