Fix broken gltf exports and minor cleanup

This commit is contained in:
Yeicor
2025-04-20 12:47:23 +02:00
parent 9e4f571808
commit b629f07f5e
7 changed files with 40 additions and 34 deletions

View File

@@ -169,6 +169,7 @@ class GLTFMgr:
self.gltf.images = [Image(bufferView=len(buffers_list), mimeType=self.image[1])]
self.gltf.textures = [Texture(source=0, sampler=0)]
self.gltf.samplers = [Sampler(magFilter=NEAREST)]
# noinspection PyPep8Naming
self.gltf.materials[0].pbrMetallicRoughness.baseColorTexture = TextureInfo(index=0)
buffers_list.append((Accessor(), BufferView(), self.image[0]))