diff --git a/js/lattice/LatticeCAM.js b/js/lattice/LatticeCAM.js index ea8a81b969d294baf81735565599de639823ee8f..a367a0beef8cba91a238a884021b37b89a4c8b10 100644 --- a/js/lattice/LatticeCAM.js +++ b/js/lattice/LatticeCAM.js @@ -9,7 +9,7 @@ define(['lattice', 'three'], function(lattice, THREE){ showCellAtIndex: function(index){ var latticeIndex = (new THREE.Vector3()).subVectors(index, this.get("cellsMin"));//index is probably a json object from gcode comment - var cell = this.cells[latticeIndex.x][latticeIndex.y][latticeIndex.z]; + var cell = this.sparseCells[latticeIndex.x][latticeIndex.y][latticeIndex.z]; if (cell) cell.show(); else console.warn("placing a cell that does not exist"); },