diff --git a/packages/scene-composer/src/components/StateManager.tsx b/packages/scene-composer/src/components/StateManager.tsx index e568f983a..fa8262339 100644 --- a/packages/scene-composer/src/components/StateManager.tsx +++ b/packages/scene-composer/src/components/StateManager.tsx @@ -13,6 +13,7 @@ import { GetSceneCommandOutput } from '@aws-sdk/client-iottwinmaker'; import { getMatterportSdk, + setBasisuDecoder, setDracoDecoder, setFeatureConfig, setGetSceneObjectFunction, @@ -182,6 +183,12 @@ const StateManager: React.FC = ({ } }, [selectedSceneNodeRef]); + useEffect(() => { + if (config.basisuDecoder) { + setBasisuDecoder(config.basisuDecoder); + } + }, [config.basisuDecoder]); + useEffect(() => { if (config.dracoDecoder) { setDracoDecoder(config.dracoDecoder);