From 10902a95ea170d5e3ea57d3b7f1ec6a8bdf1ebf4 Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Fri, 5 Jun 2015 13:23:08 -0700
Subject: [PATCH] add to cells array

---
 js/cells/DMACell.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/js/cells/DMACell.js b/js/cells/DMACell.js
index ac736405..b77151f2 100644
--- a/js/cells/DMACell.js
+++ b/js/cells/DMACell.js
@@ -21,7 +21,10 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'globals'],
         if (this.superCell) this.superCell.addChildren(this.object3D);//add as child of supercell
 
         if (superCell === undefined) {
-            if (this.index) three.sceneAdd(this.object3D);
+            if (this.index) {
+                three.sceneAdd(this.object3D);
+                if (!this.cells) three.addCell(this.object3D.children[0]);//add mesh as highlightable object
+            }
             else this.hide();//stock cell
         }
 
-- 
GitLab