Skip to content
Snippets Groups Projects
Commit 10902a95 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

add to cells array

parent e8f2d7c4
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment