From a785361b41b1de4c3cd9e57c7acf3bc0a40de214 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 6 Sep 2010 06:48:19 +0000 Subject: bugfix [#23695] SigSegV when deleting camera from multiple scenes via outline pop-up menu --- source/blender/editors/space_outliner/outliner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index ebdb546fc9d..13c55e687ea 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -3235,8 +3235,8 @@ static void outliner_do_object_operation(bContext *C, Scene *scene, SpaceOops *s if(sce && scene != sce) { ED_screen_set_scene(C, sce); } - - operation_cb(C, scene, te, NULL, tselem); + /* important to use 'sce' not scene else deleting objects can crash */ + operation_cb(C, sce, te, NULL, tselem); } } if((tselem->flag & TSE_CLOSED)==0) { -- cgit v1.2.3