diff options
author | Ilaria Cislaghi <ilaria.cislaghi@simedis.com> | 2019-03-01 16:03:18 +0100 |
---|---|---|
committer | QbieShay <cislaghi.ilaria@gmail.com> | 2019-03-02 13:31:11 +0100 |
commit | b6fe7a794d111265d87467f198c6b4d887dd530a (patch) | |
tree | d44b4f4e87277381426cb1f77b7850c6d0c5ecf6 | |
parent | 3c59604061af23e9fbe2c7097115e0b1818bc5de (diff) |
Importer for scenes only overrides the base Node if differently specified by the user
-rw-r--r-- | editor/import/resource_importer_scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Node>(ClassDB::instance(root_type)); if (base_node) { |