mirror of
https://github.com/godotengine/godot.git
synced 2024-10-23 13:41:43 +00:00
You can create an inherited scene based on an already opened scene.
This commit is contained in:
parent
8fb70142e4
commit
f32a06e470
|
@ -3533,6 +3533,7 @@ Error EditorNode::load_scene(const String& p_scene, bool p_ignore_broken_deps,bo
|
|||
}
|
||||
|
||||
|
||||
if(!p_set_inherited) {
|
||||
for(int i=0;i<editor_data.get_edited_scene_count();i++) {
|
||||
|
||||
if (editor_data.get_scene_path(i)==p_scene) {
|
||||
|
@ -3540,6 +3541,7 @@ Error EditorNode::load_scene(const String& p_scene, bool p_ignore_broken_deps,bo
|
|||
return OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
load_errors->clear();
|
||||
|
|
Loading…
Reference in New Issue
Block a user