Explorar o código

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

Nicolas Buecher %!s(int64=8) %!d(string=hai) anos
pai
achega
8205dc45b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);