소스 검색

Merge pull request #73322 from fire/basisu-compress-black

For basisu avoid inserting to the image array twice.
Rémi Verschelde 2 년 전
부모
커밋
204be35fc1
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      modules/gltf/gltf_document.cpp

+ 0 - 1
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);