From ba9f2981f19b3b2c721210b165e315540a7ecb49 Mon Sep 17 00:00:00 2001 From: Lyuma Date: Fri, 7 Apr 2023 17:44:39 +0200 Subject: gltf: Remove obsolete hack to embed gltf textures in advanced import (cherry picked from commit bd020b7d92dc99c3713b7d1b99da691b8d1e765e) --- editor/import/resource_importer_scene.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'editor') diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index 3a147abade..7979688ed0 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -2302,11 +2302,6 @@ Node *ResourceImporterScene::pre_import(const String &p_source_file, const HashM Error err = OK; HashMap 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; -- cgit v1.2.3