Browse Source

check for colorGradingTexture

David Catuhe 7 năm trước cách đây
mục cha
commit
6c4db8fbe4
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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;