🚀 Auto-deploy: TrackSteelAPP atualizado em 24/09/2026 17:32:27

This commit is contained in:
2026-09-24 17:32:27 +00:00
parent 48e845c243
commit b226fc09fe
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -299,7 +299,7 @@ export const ModelViewer3D: React.FC<ModelViewer3DProps> = ({
// Update Model in Scene & Carregar Rotação Memorizada
useEffect(() => {
if (!sceneRef.current || !modelData) return;
if (!sceneRef.current) return;
// Remove old model if present
if (modelGroupRef.current) {
@@ -307,6 +307,8 @@ export const ModelViewer3D: React.FC<ModelViewer3DProps> = ({
modelGroupRef.current = null;
}
if (!modelData) return;
const group = modelData.sceneGroup;
modelGroupRef.current = group;
sceneRef.current.add(group);