From 16b98831f7381ffbdb376ea20242a2342b1bc08c Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Fri, 14 Aug 2015 13:10:44 -0400
Subject: [PATCH] show sparse cell

---
 js/lattice/LatticeCAM.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/lattice/LatticeCAM.js b/js/lattice/LatticeCAM.js
index ea8a81b9..a367a0be 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");
         },
-- 
GitLab