diff options
| author | muiroc | 2018-05-06 19:13:23 +0200 |
|---|---|---|
| committer | muiroc | 2018-05-06 19:13:23 +0200 |
| commit | 884b239ca535292ca5c1bf7fedc2eb0a22a086e6 (patch) | |
| tree | 6a660f5ae1aa47d2f7cf40a581b40005454b4118 /editor/plugins/spatial_editor_plugin.cpp | |
| parent | 2bf71d0eeadbd2e497b1555bf1f04993f7f3d63a (diff) | |
| download | godot-884b239ca535292ca5c1bf7fedc2eb0a22a086e6.tar.gz godot-884b239ca535292ca5c1bf7fedc2eb0a22a086e6.tar.zst godot-884b239ca535292ca5c1bf7fedc2eb0a22a086e6.zip | |
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 1443f22c8..f341b970e 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3121,7 +3121,7 @@ bool SpatialEditorViewport::_create_instance(Node *parent, String &path, const P if (!scene.is_valid()) { // invalid scene return false; } else { - instanced_scene = scene->instance(); + instanced_scene = scene->instance(PackedScene::GEN_EDIT_STATE_INSTANCE); } } } |
