Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix FBX TGA loading fallback

BlueCube3310a6d2ef648184
diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp
index 99ab05d6280..34dd852c955 100644
--- a/modules/fbx/fbx_document.cpp
+++ b/modules/fbx/fbx_document.cpp
@@ -928,7 +928,7 @@ Ref<Image> FBXDocument::_parse_image_bytes_into_image(Ref<FBXState> p_state, con
r_image->load_jpg_from_buffer(p_bytes);
}
if (r_image->is_empty()) { // And then TGA.
- r_image->load_jpg_from_buffer(p_bytes);
+ r_image->load_tga_from_buffer(p_bytes);
}
// If it still can't be loaded, give up and insert an empty image as placeholder.
if (r_image->is_empty()) {