bugfix [#23695] SigSegV when deleting camera from multiple scenes via outline pop...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 6 Sep 2010 06:48:19 +0000 (06:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 6 Sep 2010 06:48:19 +0000 (06:48 +0000)
source/blender/editors/space_outliner/outliner.c

index ebdb546fc9d70da397cf3f2f505e95b4ba2880c5..13c55e687ea1a2b568e71de4f00d5c28b141bfe7 100644 (file)
@@ -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) {