Browse Source

Don't return when a subMesh hasn't defines otherwise some subMeshes could not be marked as dirty

Nicolas Buecher 8 năm trước cách đây
mục cha
commit
8205dc45b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Materials/babylon.material.ts

+ 1 - 1
src/Materials/babylon.material.ts

@@ -579,7 +579,7 @@
                     }
 
                     if (!subMesh._materialDefines) {
-                        return;
+                        continue;
                     }
 
                     func(subMesh._materialDefines);