From 6c8d6d8245ec41af40d125ca8b3165d1aa7c2d98 Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Wed, 24 Jun 2015 19:13:23 -0700
Subject: [PATCH] small changes

---
 js/lattice/LatticeBase.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/js/lattice/LatticeBase.js b/js/lattice/LatticeBase.js
index a489ad75..f1b50190 100644
--- a/js/lattice/LatticeBase.js
+++ b/js/lattice/LatticeBase.js
@@ -205,12 +205,11 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre
                 if (cell){
                     var material = cell.getMaterial();
                     if (material.dimensions){
-                        console.log(cell.applyAbsoluteRotation(material.dimensions.clone()));
-                        var subCellRange = (new THREE.Vector3(x, y, z)).add(cell.applyAbsoluteRotation(material.dimensions.clone()));
+                        var subCellRange = (new THREE.Vector3(x, y, z)).add(cell.applyRotation(material.dimensions.clone()));
                         dimMax.max(subCellRange);
                         dimMin.min(subCellRange);
                     } else if (cell.length){
-                        var subCellRange = (new THREE.Vector3(x, y, z)).add(cell.applyAbsoluteRotation(new THREE.Vector3(cell.length, 1, 1)));
+                        var subCellRange = (new THREE.Vector3(x, y, z)).add(cell.applyRotation(new THREE.Vector3(cell.length, 1, 1)));
                         dimMax.max(subCellRange);
                         dimMin.min(subCellRange);
                     }
-- 
GitLab