diff --git a/js/cam/Cam.js b/js/cam/Cam.js index ceccf6e61d54a9b92628f1c1264f61faed904c1f..4aad7f5e726c4cd5abea4c4658d1a3888a5b2ec8 100644 --- a/js/cam/Cam.js +++ b/js/cam/Cam.js @@ -261,7 +261,7 @@ define(['underscore', 'three', 'backbone', 'appState', 'latticeCAM', 'threeModel this.set("simLineNumber", 0, {silent:true}); appState.set("stockSimulationPlaying", false); three.stopAnimationLoop(); - lattice.showCells(); + lattice.showCells("cells"); }, _stockSimulation: function(){ diff --git a/js/lattice/LatticeBase.js b/js/lattice/LatticeBase.js index ade2d7cc8a0e8f939c35684593662a2c63007fe3..c54c27b99b355cf832461c52dc9b0ad4dc832f17 100644 --- a/js/lattice/LatticeBase.js +++ b/js/lattice/LatticeBase.js @@ -464,9 +464,10 @@ define(['underscore', 'backbone', 'appState', 'globals', 'plist', 'three', 'thre three.render(); }, - showCells: function(){ + showCells: function(whichArray){ + if (!whichArray) whichArray = "sparseCells"; var cellMode = appState.get("cellMode"); - this._iterCells(this.sparseCells, function(cell){ + this._iterCells(this[whichArray], function(cell){ if (cell) cell.show(cellMode) }); three.render(); diff --git a/js/plists/PList.js b/js/plists/PList.js index 35a719cf381389003e7824d8810ccd4f9fb5523b..dfade1ae31e2d926970af02a320174f889f42a62 100644 --- a/js/plists/PList.js +++ b/js/plists/PList.js @@ -11,8 +11,8 @@ define(['three'], function(THREE){ //sketch:"Sketch", material:"Materials", import:"Import", - part:"Part", - script:"Script" + part:"Part" +// script:"Script" }, electronicNavSim:{ eSetup:"Connectivity",