summaryrefslogtreecommitdiffstats
path: root/editor/import/resource_importer_scene.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-04 14:25:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-04 14:25:58 +0100
commit0fa767beff83d4570f7dcbf683d983eb76b449ac (patch)
tree33315e38ad124eaa0e0eb6f68a5cf4ac100781e8 /editor/import/resource_importer_scene.cpp
parent3224e47af8a8b0666be867f271192416232b1ac1 (diff)
parent8f6e8ef0d7b3ae91cd8719f05761cc35e1c9cd13 (diff)
downloadredot-engine-0fa767beff83d4570f7dcbf683d983eb76b449ac.tar.gz
Merge pull request #84508 from jsjtxietian/clean-copy
Clean unnecessary copy detected by clang-tidy
Diffstat (limited to 'editor/import/resource_importer_scene.cpp')
-rw-r--r--editor/import/resource_importer_scene.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp
index 80dc3f194c..46c62b1125 100644
--- a/editor/import/resource_importer_scene.cpp
+++ b/editor/import/resource_importer_scene.cpp
@@ -2377,9 +2377,8 @@ Node *ResourceImporterScene::pre_import(const String &p_source_file, const HashM
ERR_FAIL_COND_V(!importer.is_valid(), nullptr);
Error err = OK;
- HashMap<StringName, Variant> options_dupe = p_options;
- Node *scene = importer->import_scene(p_source_file, EditorSceneFormatImporter::IMPORT_ANIMATION | EditorSceneFormatImporter::IMPORT_GENERATE_TANGENT_ARRAYS | EditorSceneFormatImporter::IMPORT_FORCE_DISABLE_MESH_COMPRESSION, options_dupe, nullptr, &err);
+ Node *scene = importer->import_scene(p_source_file, EditorSceneFormatImporter::IMPORT_ANIMATION | EditorSceneFormatImporter::IMPORT_GENERATE_TANGENT_ARRAYS | EditorSceneFormatImporter::IMPORT_FORCE_DISABLE_MESH_COMPRESSION, p_options, nullptr, &err);
if (!scene || err != OK) {
return nullptr;
}