mirror of
https://github.com/godotengine/godot.git
synced 2024-11-29 15:42:29 +00:00
Merge branch 'master' of https://github.com/okamstudio/godot
This commit is contained in:
commit
33f24df786
@ -1059,14 +1059,15 @@ void SceneTreeDock::_create() {
|
||||
|
||||
|
||||
if (edited_scene) {
|
||||
|
||||
// If root exists in edited scene
|
||||
parent = scene_tree->get_selected();
|
||||
ERR_FAIL_COND(!parent);
|
||||
} else {
|
||||
if( !parent )
|
||||
parent = edited_scene;
|
||||
|
||||
} else {
|
||||
// If no root exist in edited scene
|
||||
parent = scene_root;
|
||||
ERR_FAIL_COND(!parent);
|
||||
|
||||
}
|
||||
|
||||
Object *c = create_dialog->instance_selected();
|
||||
|
Loading…
Reference in New Issue
Block a user