Browse Source

Fix build

David Catuhe 5 years ago
parent
commit
d5ceaf372a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Materials/Textures/texture.ts

+ 1 - 1
src/Materials/Textures/texture.ts

@@ -607,7 +607,7 @@ export class Texture extends BaseTexture {
                 serializationObject.base64String = this._buffer;
                 serializationObject.base64String = this._buffer;
                 serializationObject.name = serializationObject.name.replace("data:", "");
                 serializationObject.name = serializationObject.name.replace("data:", "");
             } else if (this.url && StringTools.StartsWith(this.url, "data:") && this._buffer instanceof Uint8Array) {
             } else if (this.url && StringTools.StartsWith(this.url, "data:") && this._buffer instanceof Uint8Array) {
-                serializationObject.base64String = "data:image/png;base64," + FileTools.ArrayBufferToBase64(this._buffer);
+                serializationObject.base64String = "data:image/png;base64," + StringTools.EncodeArrayBufferToBase64(this._buffer);
             }
             }
         }
         }