From 40974c321acc1fcd9fea0434e58492af7337eab8 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Fri, 30 Jan 2015 16:53:28 -0500 Subject: [PATCH] warning --- js/models/lattice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/models/lattice.js b/js/models/lattice.js index 31b6a4e7..707f00d9 100644 --- a/js/models/lattice.js +++ b/js/models/lattice.js @@ -61,6 +61,7 @@ Lattice = Backbone.Model.extend({ var index = this._subtract(position, this.get("cellsMin")); if (!cells[index.x][index.y][index.z]) cells[index.x][index.y][index.z] = new DMACell(this.get("cellMode"), position, scale); + else console.warn("already a cell there"); this.set("numCells", this.get("numCells")+1); window.three.render(); }, -- GitLab