瀏覽代碼

Merge pull request #5833 from bghgary/gltf-ibl-fix

Serialize cubeTexture matrix so that cloning works properly
David Catuhe 6 年之前
父節點
當前提交
6bed49b6c4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/Materials/Textures/cubeTexture.ts

+ 3 - 0
src/Materials/Textures/cubeTexture.ts

@@ -81,7 +81,10 @@ export class CubeTexture extends BaseTexture {
     private _noMipmap: boolean;
     private _files: string[];
     private _extensions: string[];
+
+    @serialize("textureMatrix")
     private _textureMatrix: Matrix;
+
     private _format: number;
     private _createPolynomials: boolean;