Skip to content

Commit

Permalink
fix(draco): updating global settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mumanity committed Oct 10, 2024
1 parent 03dbea8 commit 9010137
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/scene-composer/src/components/StateManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { GetSceneCommandOutput } from '@aws-sdk/client-iottwinmaker';

import {
getMatterportSdk,
setBasisuDecoder,
setDracoDecoder,
setFeatureConfig,
setGetSceneObjectFunction,
Expand Down Expand Up @@ -182,6 +183,12 @@ const StateManager: React.FC<SceneComposerInternalProps> = ({
}
}, [selectedSceneNodeRef]);

useEffect(() => {
if (config.basisuDecoder) {
setBasisuDecoder(config.basisuDecoder);
}
}, [config.basisuDecoder]);

useEffect(() => {
if (config.dracoDecoder) {
setDracoDecoder(config.dracoDecoder);
Expand Down

0 comments on commit 9010137

Please sign in to comment.