From 90101378170004df2de7de511bb0be458ef45842 Mon Sep 17 00:00:00 2001 From: Emily Lifsey Date: Thu, 10 Oct 2024 16:59:28 -0500 Subject: [PATCH] fix(draco): updating global settings --- packages/scene-composer/src/components/StateManager.tsx | 7 +++++++ 1 file changed, 7 insertions(+) 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);