diff --git a/vendors/ibt/apps/awtube-urdfviz/src/AppMenu.tsx b/vendors/ibt/apps/awtube-urdfviz/src/AppMenu.tsx index fffbfd12..1703c9f4 100644 --- a/vendors/ibt/apps/awtube-urdfviz/src/AppMenu.tsx +++ b/vendors/ibt/apps/awtube-urdfviz/src/AppMenu.tsx @@ -5,7 +5,6 @@ import { useEffect, useState } from "react" import styled from "styled-components" import { ItemType } from "antd/es/menu/hooks/useItems" import { AwTubeModel, useAwTubeModel } from "./model/ModelProvider" -import { useConfigLoader } from "@glowbuzzer/store" const StyledDiv = styled.div` display: flex; @@ -25,13 +24,13 @@ const StyledDiv = styled.div` export const AppMenu = () => { const viewMenu = useDockViewMenu() const [showPrefs, setShowPrefs] = useState(false) - const loader = useConfigLoader() const { config, changeModel } = useAwTubeModel() useEffect(() => { - loader(config, true).then(() => { - console.log("switched") - }) + console.log("Config switching not currently implemented") + // loader(config, true).then(() => { + // console.log("switched") + // }) }, [config]) function switch_l() { diff --git a/vendors/ibt/apps/awtube-urdfviz/src/main.tsx b/vendors/ibt/apps/awtube-urdfviz/src/main.tsx index 21f6a80d..76af42e5 100644 --- a/vendors/ibt/apps/awtube-urdfviz/src/main.tsx +++ b/vendors/ibt/apps/awtube-urdfviz/src/main.tsx @@ -19,7 +19,9 @@ const ConfigSwitcher = () => { const { config } = useAwTubeModel() return ( - + ) diff --git a/vendors/ibt/apps/awtube-urdfviz/src/model/ModelProvider.tsx b/vendors/ibt/apps/awtube-urdfviz/src/model/ModelProvider.tsx index 0f0c467b..3a5d78a1 100644 --- a/vendors/ibt/apps/awtube-urdfviz/src/model/ModelProvider.tsx +++ b/vendors/ibt/apps/awtube-urdfviz/src/model/ModelProvider.tsx @@ -78,7 +78,7 @@ export const ModelProvider = ({ children }: { children: ReactNode }) => { const context = useMemo(() => { return { model, - config: model === AwTubeModel.AWTUBE_L ? config_awtube_l : config_awtube_l2, + // config: model === AwTubeModel.AWTUBE_L ? config_awtube_l : config_awtube_l2, parts: model === AwTubeModel.AWTUBE_L ? definition_l : definition_l2, changeModel }