diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-17 17:37:15 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-06-17 17:38:08 +0300 |
commit | f827811a42b9aa9e3fe6969f69bb9362814c250e (patch) | |
tree | 60e5b6985c9ba2dce8c2e26906382c6dbfd6220e /source/blender/editors/include | |
parent | 495aff71ca81c77d2384dd13f5d24039ab2f9458 (diff) |
Fix T65886: Crash when deleting a scene when "New Main Window" is open.
When we delete a scene, we need to update to new scene pointer all main
widows that might be using it, not only the active one from the context...
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_scene.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_scene.h b/source/blender/editors/include/ED_scene.h index 99a9693ad19..832f40d22aa 100644 --- a/source/blender/editors/include/ED_scene.h +++ b/source/blender/editors/include/ED_scene.h @@ -29,10 +29,7 @@ struct Scene *ED_scene_add(struct Main *bmain, struct bContext *C, struct wmWindow *win, enum eSceneCopyMethod method) ATTR_NONNULL(); -bool ED_scene_delete(struct bContext *C, - struct Main *bmain, - struct wmWindow *win, - struct Scene *scene) ATTR_NONNULL(); +bool ED_scene_delete(struct bContext *C, struct Main *bmain, struct Scene *scene) ATTR_NONNULL(); void ED_scene_change_update(struct Main *bmain, struct Scene *scene, struct ViewLayer *layer) ATTR_NONNULL(); bool ED_scene_view_layer_delete(struct Main *bmain, |