Merge pull request #26446 from QbieShay/root_node_from_escn

Importer for scenes only overrides the base Node if differently specified by the user
This commit is contained in:
Rémi Verschelde 2019-03-03 13:51:09 +01:00 committed by GitHub
commit 86f4fabd46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {