fix electricienne debug model loading

This commit is contained in:
Tom Boullay
2026-05-02 10:58:00 +02:00
parent 0cb5f57182
commit c71cd35f4d
9 changed files with 38 additions and 8 deletions
+5 -2
View File
@@ -27,6 +27,9 @@ import { useOctreeGraphNode } from "@/hooks/three/useOctreeGraphNode";
import type { OctreeReadyHandler } from "@/types/three/three";
import { logModelLoadError } from "@/utils/three/modelLoadLogger";
const ELECTRICIENNE_ANIMATED_MODEL_PATH =
"/models/electricienne_animated/model.gltf";
interface TestMapProps {
onOctreeReady: OctreeReadyHandler;
}
@@ -134,9 +137,9 @@ export function TestMap({ onOctreeReady }: TestMapProps): React.JSX.Element {
<RepairGameZone />
</Physics>
<ModelPreviewErrorBoundary modelPath="/models/elec/model.gltf">
<ModelPreviewErrorBoundary modelPath={ELECTRICIENNE_ANIMATED_MODEL_PATH}>
<AnimatedModel
modelPath="/models/elec/model.gltf"
modelPath={ELECTRICIENNE_ANIMATED_MODEL_PATH}
defaultAnimation="Idle"
position={[0, 0, -5]}
scale={1}