소스 검색

Merge pull request #5642 from tauli/patch-1

let every material have it's own reflection color
David Catuhe 6 년 전
부모
커밋
22cc0e4172
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Viewer/src/model/viewerModel.ts

+ 2 - 2
Viewer/src/model/viewerModel.ts

@@ -557,7 +557,7 @@ export class ViewerModel implements IDisposable {
                 material.disableLighting = !this._modelConfiguration.material.directEnabled;
             }
             if (this._configurationContainer && this._configurationContainer.reflectionColor) {
-                material.reflectionColor = this._configurationContainer.reflectionColor;
+                material.reflectionColor = this._configurationContainer.reflectionColor.clone();
             }
         }
         else if (material instanceof MultiMaterial) {
@@ -762,4 +762,4 @@ export class ViewerModel implements IDisposable {
         this._animations.length = 0;
         this.rootMesh.dispose(false, true);
     }
-}
+}