@viamrobotics/motion-tools 1.25.2 → 1.25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,7 @@
40
40
  })
41
41
 
42
42
  $effect(() => {
43
+ if (!positions) return
43
44
  for (let i = 0, l = positions.length; i < l; i += 3) {
44
45
  const dotIndex = i / 3
45
46
  const instance = mesh.addInstance(geometryID)
@@ -54,6 +55,7 @@
54
55
  }
55
56
 
56
57
  return () => {
58
+ if (!positions) return
57
59
  for (let i = 0, l = positions.length / 3; i < l; i += 1) {
58
60
  mesh.deleteInstance(i)
59
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/motion-tools",
3
- "version": "1.25.2",
3
+ "version": "1.25.4",
4
4
  "description": "Motion visualization with Viam",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",