浏览代码

Blendshapes: fix blendhapes applied on child mat

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

+ 1 - 1
h3d/prim/Blendshape.hx

@@ -142,7 +142,7 @@ class Blendshape {
 
 		#else
 		var alloc = hxd.impl.Allocator.get();
-		for (m in mesh.getMaterials()) {
+		for (m in mesh.getMaterials(false)) {
 			var shader : h3d.shader.Blendshape = null;
 			for (s in m.mainPass.getShaders()) {
 				if (Std.isOfType(s, h3d.shader.Blendshape)) {