David Catuhe 8 лет назад
Родитель
Сommit
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;