Fix #147182: Duplicating workspace sequencer_scene based on window scene
1122a05cb6 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
This commit is contained in:
committed by
Philipp Oeser
parent
7b18a2c324
commit
bb3f0f5401
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user