diff --git a/frontend/src/components/files/URDFRenderer.tsx b/frontend/src/components/files/URDFRenderer.tsx index 15ebc862..275e16aa 100644 --- a/frontend/src/components/files/URDFRenderer.tsx +++ b/frontend/src/components/files/URDFRenderer.tsx @@ -57,11 +57,9 @@ const URDFRenderer = ({ const [orientation, setOrientation] = useState("Z-up"); const [isFullScreen, setIsFullScreen] = useState(false); const parentRef = useRef(null); - const [forceRerender, setForceRerender] = useState(0); const jointPositionsRef = useRef<{ name: string; value: number }[]>([]); const rendererRef = useRef(null); const [isWireframe, setIsWireframe] = useState(showWireframe); - const wireframeStateRef = useRef(showWireframe); const [theme, setTheme] = useState(() => supportedThemes[0]); const themeRef = useRef("default"); const cameraRef = useRef(null); @@ -300,7 +298,7 @@ const URDFRenderer = ({ rendererRef.current = null; document.removeEventListener("fullscreenchange", handleFullScreenChange); }; - }, [urdfContent, files, orientation, forceRerender, getThemeColors]); + }, [urdfContent, files, orientation, getThemeColors]); const handleJointChange = (index: number, value: number) => { setJointControls((prevControls) => {