Explorar o código

Change Reset Method in NotBlocking Textures

sevan %!s(int64=8) %!d(string=hai) anos
pai
achega
4b3ed9819d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Materials/Textures/babylon.texture.ts

+ 1 - 1
src/Materials/Textures/babylon.texture.ts

@@ -110,7 +110,7 @@
                 }
 
                 if (!this.isBlocking) {
-                    scene.markAllMaterialsAsDirty(Material.TextureDirtyFlag);
+                    scene.resetCachedMaterial();
                 }
             }