Skip to content

Commit

Permalink
Merge pull request #1709 from xeokit/fix/ifc-colors
Browse files Browse the repository at this point in the history
Update ObjectsMemento::StoreyViewsPlugin to restore only visibility
  • Loading branch information
xeolabs authored Oct 23, 2024
2 parents fc84fda + 150ea45 commit 12b2ec5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plugins/StoreyViewsPlugin/StoreyViewsPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,11 @@ class StoreyViewsPlugin extends Plugin {
height = Math.round(width * aspect);
}

this._objectsMemento.saveObjects(scene);
const mask = {
visible: true,
}

this._objectsMemento.saveObjects(scene, mask);
this._cameraMemento.saveCamera(scene);

this.showStoreyObjects(storeyId, utils.apply(options, {
Expand All @@ -556,7 +560,7 @@ class StoreyViewsPlugin extends Plugin {
format: format,
});

this._objectsMemento.restoreObjects(scene);
this._objectsMemento.restoreObjects(scene, mask);
this._cameraMemento.restoreCamera(scene);

return new StoreyMap(storeyId, src, format, width, height, padding);
Expand Down

0 comments on commit 12b2ec5

Please sign in to comment.