瀏覽代碼

Flatten mesh.py morph target vertex list format (#8737)

Morph target vertices were being saved as an array of vec3s, which were not uploading properly to GPU at runtime.
Cody Burrow 9 年之前
父節點
當前提交
2cc5ee0acf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/exporters/blender/addons/io_three/exporter/api/mesh.py

+ 1 - 1
utils/exporters/blender/addons/io_three/exporter/api/mesh.py

@@ -446,7 +446,7 @@ def blend_shapes(mesh, options):
             morph = []
             for d in key_blocks[key].data:
                 co = d.co
-                morph.append([co.x, co.y, co.z])
+                morph.extend([co.x, co.y, co.z])
             manifest.append({
                 constants.NAME: key,
                 constants.VERTICES: morph