summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-05-07 13:34:09 -0300
committerGitHub <noreply@github.com>2018-05-07 13:34:09 -0300
commit8c30337565326f313e398f6428eda5cb17614f14 (patch)
tree2cc1f75a76a3889d9bed35be53a8e2b71588ab67
parentb96cd25305b21ba23f734004b885139c65c732ba (diff)
parent884b239ca535292ca5c1bf7fedc2eb0a22a086e6 (diff)
Merge pull request #18684 from muiroc/fix_dragdrop_instancing
Editor: Makes dragdrop instantiation behavior consistent with the instance scene button
-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 bd0406a3cb..1e6c736381 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);
}
}
}