mirror of
https://github.com/godotengine/godot.git
synced 2024-12-17 16:44:13 +00:00
Dropping a mesh file into the scene no longer creates an instanced scene.
This commit is contained in:
parent
19b1ff0fc5
commit
5c88ad9457
@ -2917,7 +2917,9 @@ bool SpatialEditorViewport::_create_instance(Node *parent, String &path, const P
|
||||
}
|
||||
}
|
||||
|
||||
instanced_scene->set_filename(ProjectSettings::get_singleton()->localize_path(path));
|
||||
if (scene != NULL) {
|
||||
instanced_scene->set_filename(ProjectSettings::get_singleton()->localize_path(path));
|
||||
}
|
||||
|
||||
editor_data->get_undo_redo().add_do_method(parent, "add_child", instanced_scene);
|
||||
editor_data->get_undo_redo().add_do_method(instanced_scene, "set_owner", editor->get_edited_scene());
|
||||
|
Loading…
Reference in New Issue
Block a user