diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2023-02-14 17:22:36 -0800 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2023-02-14 17:22:36 -0800 |
commit | 28a340bf3be201dab67a1bd70b2334ff4325d5b9 (patch) | |
tree | 73d2d561da5cdc6334bcf9d1e1306a3e9ed784f9 /modules/gltf | |
parent | 4848877b802b17f4ab1aecfde42c81a7cc9b6f08 (diff) |
For basisu avoid inserting to the image array twice.
Basisu images were getting referenced incorrectly like set black or set as not transparent.
Diffstat (limited to 'modules/gltf')
-rw-r--r-- | modules/gltf/gltf_document.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 028028a103..e3ba290eb2 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -3285,7 +3285,6 @@ Error GLTFDocument::_parse_images(Ref<GLTFState> p_state, const String &p_base_p tex.instantiate(); tex->set_name(img->get_name()); tex->set_keep_compressed_buffer(true); - p_state->source_images.push_back(img); tex->create_from_image(img, PortableCompressedTexture2D::COMPRESSION_MODE_BASIS_UNIVERSAL); p_state->images.push_back(tex); p_state->source_images.push_back(img); |