diff --git a/js/cells/DMACell.js b/js/cells/DMACell.js index c1e28eebccc645fed802c32144305fd68b9a8c60..73b1644b9ee00e512b35d8bd55b6cd2b5ab69749 100644 --- a/js/cells/DMACell.js +++ b/js/cells/DMACell.js @@ -105,6 +105,7 @@ DMACell.prototype.setSuperCell = function(superCell, index){ DMACell.prototype.setMode = function(mode){ if (mode === undefined) mode = globals.appState.get("cellMode"); + if (this.superCell) this.superCell.setMode(mode); switch(mode) { case "cell": diff --git a/js/cells/supercells/GIKSuperCell.js b/js/cells/supercells/GIKSuperCell.js index d18c44beec703f6a40925c9ace9c8ea1ab579b48..65c5e454ad8fe7cc92631d94cc5f0ee9c604ae50 100644 --- a/js/cells/supercells/GIKSuperCell.js +++ b/js/cells/supercells/GIKSuperCell.js @@ -19,7 +19,7 @@ GIKSuperCell = function(length, range, cells){ }); if (this.indices) globals.three.sceneAdd(this.object3D, "supercell"); -// this.setMode(); + this.setMode(); }; GIKSuperCell.prototype = Object.create(DMACell.prototype); diff --git a/js/threeViews/Highlighter.js b/js/threeViews/Highlighter.js index bb0321158fe519c629d1e76dd5c86a4f79b8c582..efe367256eb5a475d682f22f25da5d8600e5edcd 100644 --- a/js/threeViews/Highlighter.js +++ b/js/threeViews/Highlighter.js @@ -206,7 +206,7 @@ CubeHighlighter = Highlighter.extend({ GIKHighlighter = Highlighter.extend({ _makeGeometry: function(){ - return new THREE.BoxGeometry(1,1,1);//globals.lattice.zScale(0) + return new THREE.BoxGeometry(1,1,globals.lattice.zScale(0)); }, _setPosition: function(position, direction){