We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f478c6 commit 63fa3faCopy full SHA for 63fa3fa
src/flitter/render/window/models.pyx
@@ -120,7 +120,8 @@ cdef class Model:
120
buffers = None, None
121
objects[name] = buffers
122
return buffers
123
- if (visual := self.trimesh_model.visual) is not None and isinstance(visual, trimesh.visual.texture.TextureVisuals) and visual.uv is not None:
+ if (visual := self.trimesh_model.visual) is not None and isinstance(visual, trimesh.visual.texture.TextureVisuals) \
124
+ and visual.uv is not None and len(visual.uv) == len(self.trimesh_model.vertices):
125
vertex_uvs = visual.uv
126
else:
127
vertex_uvs = np.zeros((len(self.trimesh_model.vertices), 2))
0 commit comments