Importer for scenes only overrides the base Node if differently specified by the user
This commit is contained in:
parent
3c59604061
commit
b6fe7a794d
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
|
||||||
|
|
||||||
String root_type = p_options["nodes/root_type"];
|
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));
|
Node *base_node = Object::cast_to<Node>(ClassDB::instance(root_type));
|
||||||
|
|
||||||
if (base_node) {
|
if (base_node) {
|
||||||
|
|
Loading…
Reference in a new issue