diff options
author | Lyuma <xn.lyuma@gmail.com> | 2023-04-03 20:24:54 -0700 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2023-04-03 20:28:03 -0700 |
commit | bd020b7d92dc99c3713b7d1b99da691b8d1e765e (patch) | |
tree | ec8f99e6454c39beb78d12854630b8f021094ed1 /editor/import/resource_importer_scene.cpp | |
parent | ef025711a694071a1407b5035a6fe3e67c2a5b07 (diff) | |
download | redot-engine-bd020b7d92dc99c3713b7d1b99da691b8d1e765e.tar.gz |
gltf: Remove obsolete hack to embed gltf textures in advanced import
Diffstat (limited to 'editor/import/resource_importer_scene.cpp')
-rw-r--r-- | editor/import/resource_importer_scene.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index 8dbaefe95f..038a16f566 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -2298,11 +2298,6 @@ Node *ResourceImporterScene::pre_import(const String &p_source_file, const HashM Error err = OK; HashMap<StringName, Variant> options_dupe = p_options; - // By default, the GLTF importer will extract embedded images into files on disk - // However, we do not want the advanced settings dialog to be able to write files on disk. - // To avoid this and also avoid compressing to basis every time, we are using the uncompressed option. - options_dupe["gltf/embedded_image_handling"] = 3; // Embed as Uncompressed defined in GLTFState::GLTFHandleBinary::HANDLE_BINARY_EMBED_AS_UNCOMPRESSED - Node *scene = importer->import_scene(p_source_file, EditorSceneFormatImporter::IMPORT_ANIMATION | EditorSceneFormatImporter::IMPORT_GENERATE_TANGENT_ARRAYS, options_dupe, nullptr, &err); if (!scene || err != OK) { return nullptr; |