mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
gltf: Remove obsolete hack to embed gltf textures in advanced import
(cherry picked from commit bd020b7d92)
This commit is contained in:
parent
1f51ceddf3
commit
ba9f2981f1
1 changed files with 0 additions and 5 deletions
|
|
@ -2302,11 +2302,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue