diff --git a/js/models/Lattice.js b/js/models/Lattice.js index 34722ed097ef3c6cc9ba7f857db6f9012798fd74..5577a15e623fb36f958a90d5a8a9d2d51f7cc9f7 100644 --- a/js/models/Lattice.js +++ b/js/models/Lattice.js @@ -328,15 +328,15 @@ Lattice = Backbone.Model.extend({ //only update visible cells var cellMode = this.get("cellMode"); + this._iterCells(this.get("cells"), function(cell){ + if (cell) cell.updateForScale(scale, cellMode); + }); if (this.get("inverseMode")){ this._iterCells(this.get("inverseCells"), function(cell){ if (cell) cell.updateForScale(scale, cellMode); }); - } else { - this._iterCells(this.get("cells"), function(cell){ - if (cell) cell.updateForScale(scale, cellMode); - }); } + dmaGlobals.three.render(); },