Browse Source

Blendshapes: fix blendhapes applied on child mat

lviguier 3 weeks ago
parent
commit
51fb311701
1 changed files with 1 additions and 1 deletions
  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)) {