diff --git a/src/kiri-mode/cam/animate.js b/src/kiri-mode/cam/animate.js index d4ad7980..45983253 100644 --- a/src/kiri-mode/cam/animate.js +++ b/src/kiri-mode/cam/animate.js @@ -469,8 +469,10 @@ kiri.load(() => { renderMoves(id, moves, send); } else { last = next; - tool.pos = next.point; - toolUpdate = { mesh_move: { id, pos: next.point }}; + if (tool) { + tool.pos = next.point; + toolUpdate = { mesh_move: { id, pos: next.point }}; + } renderPath(send); } }