summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormuiroc <ian.mario.dev@gmail.com>2018-05-06 19:13:23 +0200
committermuiroc <ian.mario.dev@gmail.com>2018-05-06 19:13:23 +0200
commit884b239ca535292ca5c1bf7fedc2eb0a22a086e6 (patch)
tree6a660f5ae1aa47d2f7cf40a581b40005454b4118
parent2bf71d0eeadbd2e497b1555bf1f04993f7f3d63a (diff)
SpatialEditorViewport::_create_instance: pass GEN_EDIT_STATE_INSTANCED to scene->instance()
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index 1443f22c8f..f341b970e2 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);
}
}
}