Browse Source

Change Reset Method in NotBlocking Textures

sevan 8 năm trước cách đây
mục cha
commit
4b3ed9819d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
                 }
             }