Преглед на файлове

Merge pull request #26446 from QbieShay/root_node_from_escn

Importer for scenes only overrides the base Node if differently specified by the user
Rémi Verschelde преди 6 години
родител
ревизия
86f4fabd46
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      editor/import/resource_importer_scene.cpp

+ 1 - 1
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) {