소스 검색

Replace data: by nothing when serializing a texture base on a base64 string

Julien Moreau-Mathis 8 년 전
부모
커밋
6aadf82b57
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Materials/Textures/babylon.texture.ts

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

@@ -308,6 +308,7 @@
             
             if (typeof this._buffer === "string" && this._buffer.substr(0, 5) === "data:") {
                 serializationObject.base64String = this._buffer;
+                serializationObject.name = serializationObject.name.replace("data:", "");
             }
 
             return serializationObject;