From bb3f0f540144ec9e7cab417e368fcfc58df45c06 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Thu, 2 Oct 2025 15:07:32 +0200 Subject: [PATCH] Fix #147182: Duplicating workspace sequencer_scene based on window scene 1122a05cb678 made it so that a new scene was based off of the window scene, now changed to the workspace sequencer_scene (if we have one, otherwise fallback to the window scene). Pull Request: https://projects.blender.org/blender/blender/pulls/147187 --- source/blender/editors/scene/scene_edit.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/scene/scene_edit.cc b/source/blender/editors/scene/scene_edit.cc index 1b2b5ae77fc..b9f75b0504c 100644 --- a/source/blender/editors/scene/scene_edit.cc +++ b/source/blender/editors/scene/scene_edit.cc @@ -368,13 +368,14 @@ static wmOperatorStatus new_sequencer_scene_exec(bContext *C, wmOperator *op) { Main *bmain = CTX_data_main(C); wmWindow *win = CTX_wm_window(C); - Scene *scene_old = WM_window_get_active_scene(win); + WorkSpace *workspace = CTX_wm_workspace(C); + Scene *scene_old = workspace->sequencer_scene ? workspace->sequencer_scene : + WM_window_get_active_scene(win); int type = RNA_enum_get(op->ptr, "type"); Scene *new_scene = scene_add(bmain, scene_old, eSceneCopyMethod(type)); blender::seq::editing_ensure(new_scene); - WorkSpace *workspace = CTX_wm_workspace(C); workspace->sequencer_scene = new_scene; WM_event_add_notifier(C, NC_WINDOW, nullptr);