SpatialEditorViewport::_create_instance: pass GEN_EDIT_STATE_INSTANCED to scene->instance()

This commit is contained in:
muiroc 2018-05-06 19:13:23 +02:00
parent 2bf71d0eea
commit 884b239ca5
1 changed files with 1 additions and 1 deletions

View File

@ -3121,7 +3121,7 @@ bool SpatialEditorViewport::_create_instance(Node *parent, String &path, const P
if (!scene.is_valid()) { // invalid scene if (!scene.is_valid()) { // invalid scene
return false; return false;
} else { } else {
instanced_scene = scene->instance(); instanced_scene = scene->instance(PackedScene::GEN_EDIT_STATE_INSTANCE);
} }
} }
} }