Преглед изворни кода

Change Reset Method in NotBlocking Textures

sevan пре 8 година
родитељ
комит
4b3ed9819d
1 измењених фајлова са 1 додато и 1 уклоњено
  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();
                 }
             }