From 8850960aadf9e1457c530b455ac09bf9aa9041ad Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Wed, 27 May 2015 15:09:18 -0700
Subject: [PATCH] small changes

---
 js/cells/GIKCell.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/js/cells/GIKCell.js b/js/cells/GIKCell.js
index 9910f7fe..412f1f55 100644
--- a/js/cells/GIKCell.js
+++ b/js/cells/GIKCell.js
@@ -15,7 +15,6 @@
     GIKCell.prototype.setSuperCell = function(superCell, index){
         this.superCell = superCell;
         this.superCellIndex = index;
-        console.log(this.indices);
         CubeCell.call(this, this.indices);
         if (this.superCellIndex == this.superCell.getLength()) this.object3D.rotateZ(Math.PI);
         return this.object3D;
@@ -53,9 +52,7 @@
     };
 
     GIKCell.prototype.calcHighlighterPosition = function(face){
-
-//        var params = CubeCell.prototype.calcHighlighterPosition.call();
-        var direction = face.normal.clone().applyEuler(this.object3D.rotation).applyEuler(this.superCell.object3D.rotation);
+        var direction = face.normal.clone().applyEuler(this.object3D.rotation).applyEuler(this.object3D.parent.rotation);
         var position = globals.lattice.getPositionForIndex(this.indices);
         var self = this;
         _.each(_.keys(position), function(key){
-- 
GitLab