Przeglądaj źródła

Merge pull request #5642 from tauli/patch-1

let every material have it's own reflection color
David Catuhe 6 lat temu
rodzic
commit
22cc0e4172
1 zmienionych plików z 2 dodań i 2 usunięć
  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);
     }
-}
+}