1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Add inherit parameter to open_scene_from_path

This commit is contained in:
Robert Yevdokimov
2024-03-30 18:42:01 -04:00
committed by Robert Yevdokimov
parent 19e003bc08
commit 7f09804154
7 changed files with 23 additions and 9 deletions

View File

@@ -4478,7 +4478,7 @@ void EditorNode::replace_history_reimported_nodes(Node *p_original_root_node, No
}
}
void EditorNode::open_request(const String &p_path) {
void EditorNode::open_request(const String &p_path, bool p_set_inherited) {
if (!opening_prev) {
List<String>::Element *prev_scene_item = previous_scenes.find(p_path);
if (prev_scene_item != nullptr) {
@@ -4486,7 +4486,7 @@ void EditorNode::open_request(const String &p_path) {
}
}
load_scene(p_path); // As it will be opened in separate tab.
load_scene(p_path, false, p_set_inherited); // As it will be opened in separate tab.
}
bool EditorNode::has_previous_scenes() const {