From 0cf046d203242ae4bc2df1dc5ed3983bc5893ba1 Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Tue, 3 Mar 2015 18:32:16 -0500
Subject: [PATCH] scale fixes

---
 js/models/Lattice.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/js/models/Lattice.js b/js/models/Lattice.js
index 34722ed0..5577a15e 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();
     },
 
-- 
GitLab