Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/containers/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,15 +403,18 @@ const View = ({ visible, isEmbeddedMode = false }: ViewProps) => {
embedConfig.enableParticlePicking,
]);

// Apply showSimulationBox setting from embed config
// Apply showSimulationBox setting from embed config (only in embedded mode)
useEffect(() => {
if (renderSettings.showSimulationBox !== embedConfig.showSimulationBox) {
if (
isEmbeddedMode &&
renderSettings.showSimulationBox !== embedConfig.showSimulationBox
) {
setRenderSettings({
...renderSettings,
showSimulationBox: embedConfig.showSimulationBox,
});
}
}, [embedConfig.showSimulationBox, renderSettings, setRenderSettings]);
}, [isEmbeddedMode, embedConfig.showSimulationBox, renderSettings, setRenderSettings]);

// Update camera planes based on simulation box bounds
useEffect(() => {
Expand Down