浏览代码

check for colorGradingTexture

David Catuhe 7 年之前
父节点
当前提交
6c4db8fbe4
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/Materials/Textures/babylon.colorGradingTexture.ts

+ 5 - 0
src/Materials/Textures/babylon.colorGradingTexture.ts

@@ -87,6 +87,11 @@ module BABYLON {
             this._texture = texture;
 
             var callback = (text: string | ArrayBuffer) => {
+
+                if (typeof text !== "string") {
+                    return;
+                }
+
                 var data: Nullable<Uint8Array> = null;
                 var tempData: Nullable<Float32Array> = null;