equinor / cc-components

Components and apps for CC.
MIT License
4 stars 0 forks source link

🐛: ModelViewer : ModelViewer fails to load model when switching between items #971

Closed kjellhaaland closed 2 months ago

kjellhaaland commented 2 months ago

Description

Sometimes, when switching between tabs in the sidesheet, or selecting new items with the sidesheet open, the 3D model disappears and will not load. Only way to get it back is by refreshing the window.

Reproduce

Open the ModelViewer and wait for it to load successfully, then switch tabs or change item.

Expected behavior

The ModelViewer loads the 3D model for every item that is selected.

kjellhaaland commented 2 months ago

Fixed as part of https://github.com/equinor/cc-components/issues/940. Issue related to caching of modelviewer loading. Disabled cache, so that the model is loaded into the canvas when the tags/change.