Selaa lähdekoodia

Change Reset Method in NotBlocking Textures

sevan 8 vuotta sitten
vanhempi
commit
4b3ed9819d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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();
                 }
             }