Add inherit parameter to open_scene_from_path
This commit is contained in:
parent
19e003bc08
commit
7f09804154
7 changed files with 23 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue