diff --git a/js/cells/supercells/DMASuperCell.js b/js/cells/supercells/DMASuperCell.js index fc4dba853d6af99486d2f9947a823e4ea68db6ce..3cf1bb4066ec61dc8ddcaac24f5aa96a687d2fbb 100644 --- a/js/cells/supercells/DMASuperCell.js +++ b/js/cells/supercells/DMASuperCell.js @@ -30,14 +30,14 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'cell'], for (var z=0;z<range.z;z++){ //child cells add themselves to object3D if (material.cells && material.cells[x][y][z]) cells[x][y].push(this._makeSubCellForIndex(new THREE.Vector3(x, y, z), this, material.cells[x][y][z].material)); - else cells[x][y].push(this._makeSubCellForIndex(new THREE.Vector3(x, y, z), this, material)); + else cells[x][y].push(this._makeSubCellForIndex({index: new THREE.Vector3(x, y, z), material:this.material})); } } } return cells; }; - DMASuperCell.prototype._makeSubCellForIndex = function(index, supercell, material){ + DMASuperCell.prototype._makeSubCellForIndex = function(json){ return null;//override in subclasses }; diff --git a/js/cells/supercells/GIKSuperCell.js b/js/cells/supercells/GIKSuperCell.js index 1b69218b2e2d03d1d2792e61b46b1618b8e9dbe2..4d28f4b025cb1113f70a211d6373b3ad1c5c665a 100644 --- a/js/cells/supercells/GIKSuperCell.js +++ b/js/cells/supercells/GIKSuperCell.js @@ -21,8 +21,8 @@ define(['underscore', 'three', 'threeModel', 'lattice', 'appState', 'superCell', }; GIKSuperCell.prototype = Object.create(DMASuperCell.prototype); - GIKSuperCell.prototype._makeSubCellForIndex = function(index, material){ - return new GIKCell(index, material, this); + GIKSuperCell.prototype._makeSubCellForIndex = function(json){ + return new GIKCell(json, this); }; GIKSuperCell.prototype._rotateCell = function(object3D){ diff --git a/js/menus/CompositeMenu.js b/js/menus/CompositeMenu.js index 5c464084d1eae3870405ac7f5d41a41af5478b59..9764504ee150cc778cbf6b64fb072dbf6b0d3492 100644 --- a/js/menus/CompositeMenu.js +++ b/js/menus/CompositeMenu.js @@ -105,7 +105,7 @@ define(['jquery', 'underscore', 'menuParent', 'plist', 'lattice', 'globals'], fu <span><%= materials.compositeMaterials[key].name %></span></div>\ </label>\ <% }); %><br/>\ - <a id="finishComposite" href="#" class="btn btn-block btn-lg btn-success">Finish Composite</a><br/>\ + <a id="finishComposite" href="#" class="btn btn-block btn-lg btn-success">Save Composite</a><br/>\ <a id="cancelComposite" href="#" class="btn btn-halfWidth btn-lg btn-default">Cancel / Exit</a>\ <a id="deleteComposite" href="#" class="btn btn-halfWidth pull-right btn-lg btn-default"><span class="fui-trash"></span> Delete</a><br/>\ ')