瀏覽代碼

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();
                 }
             }