Adds "Set as Main Scene" option to EditorSceneTabs context menu

Adds the option to quickly set main scene by right-clicking a scene tab. If the scene has no root, then the option is greyed out. If the scene is unsaved, the file is saved and then set as main scene.

Co-Authored-By: Alex Tam <65537185+altamkp@users.noreply.github.com>
This commit is contained in:
vaner-org
2025-05-29 03:57:17 +05:30
parent bd2ca13c6f
commit 8aea5136f8
3 changed files with 27 additions and 1 deletions

View File

@@ -148,6 +148,7 @@ public:
SCENE_SAVE_SCENE,
SCENE_SAVE_AS_SCENE,
SCENE_SAVE_ALL_SCENES,
SCENE_SET_MAIN_SCENE,
SCENE_MULTI_SAVE_AS_SCENE,
SCENE_QUICK_OPEN,
SCENE_QUICK_OPEN_SCENE,
@@ -216,6 +217,7 @@ public:
SCENE_TAB_CLOSE,
SAVE_AND_RUN,
SAVE_AND_RUN_MAIN_SCENE,
SAVE_AND_SET_MAIN_SCENE,
RESOURCE_SAVE,
RESOURCE_SAVE_AS,
SETTINGS_PICK_MAIN_SCENE,