diff --git a/js/models/lattice.js b/js/models/lattice.js index 31b6a4e7257f514ff8170c7dde3cba2756ca3a9d..707f00d96076d1d359ba1f1ee257a4c28593a021 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(); },