Issue with object overlapping when switching buildings via API

Hello,

We are developing a system using the Shapespark Viewer API to enable material changes and switch objects (equipment).

We are currently implementing a feature to swap entire building models using the API. However, we are encountering a rendering issue where the objects appear duplicated or overlapping (double), which creates a flickering effect.

We have noticed that this flickering stops and the scene renders correctly after we switch the building (structure) once.

It seems the issue occurs only in the initial state or before the first toggle. Could you please advise on how to fix this so the objects appear correctly from the start?

Would it be possible to send us a link to the customized scene, so we could take a closer look at the issue? You can send the link via PM or support@shapespark.com