浏览代码

Blenshapes: ignore normals because they're wrong because of maya exporting wrong normals

lviguier 1 月之前
父节点
当前提交
7126336c12
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      h3d/prim/Blendshape.hx

+ 2 - 2
h3d/prim/Blendshape.hx

@@ -109,8 +109,8 @@ class Blendshape {
 					var offsetInput = 0;
 					for (input in shapes[sIdx].vertexFormat.getInputs()) {
 						for (sizeIdx in 0...input.type.getSize()) {
-							// if (input.name == "normal")
-							// 	continue;
+							if (input.name == "normal")
+								continue;
 
 							var original = originalBytes.getFloat(affectedVId * vertexFormat.stride + inputMapping[sIdx][input.name] + sizeIdx << 2);
 							var offset = sp.vertexBytes.getFloat(offsetIdx * shapes[sIdx].vertexFormat.stride + offsetInput + sizeIdx << 2);