From b6fe7a794d111265d87467f198c6b4d887dd530a Mon Sep 17 00:00:00 2001 From: Ilaria Cislaghi Date: Fri, 1 Mar 2019 16:03:18 +0100 Subject: Importer for scenes only overrides the base Node if differently specified by the user --- editor/import/resource_importer_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index 76552575da..5eb1d2ec6c 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -1240,7 +1240,7 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p String root_type = p_options["nodes/root_type"]; - if (scene->get_class() != root_type) { + if (root_type != "Spatial") { Node *base_node = Object::cast_to(ClassDB::instance(root_type)); if (base_node) { -- cgit v1.2.3