Merge pull request #3208 from nounoursheureux/master

You can now create an inherited scene based on an already opened scene
This commit is contained in:
Rémi Verschelde 2016-01-06 18:31:33 +01:00
commit bc3b1a63ba
1 changed files with 6 additions and 4 deletions

View File

@ -3535,11 +3535,13 @@ Error EditorNode::load_scene(const String& p_scene, bool p_ignore_broken_deps,bo
}
for(int i=0;i<editor_data.get_edited_scene_count();i++) {
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) {
_scene_tab_changed(i);
return OK;
if (editor_data.get_scene_path(i)==p_scene) {
_scene_tab_changed(i);
return OK;
}
}
}