Browse Source

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

Nicolas Buecher 8 years ago
parent
commit
8205dc45b0
1 changed files with 1 additions and 1 deletions
  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);