Use filename for scene root of imported models
(cherry picked from commit 82fadde680
)
This commit is contained in:
parent
f5def1329e
commit
25074c734d
|
@ -1257,7 +1257,10 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
|
|||
Object::cast_to<Spatial>(scene)->scale(Vector3(root_scale, root_scale, root_scale));
|
||||
}
|
||||
|
||||
if (p_options["nodes/root_name"] != "Scene Root")
|
||||
scene->set_name(p_options["nodes/root_name"]);
|
||||
else
|
||||
scene->set_name(p_save_path.get_file().get_basename());
|
||||
|
||||
err = OK;
|
||||
|
||||
|
|
Loading…
Reference in New Issue