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

small changes

parent 99d502a6
Branches
Tags
No related merge requests found
...@@ -20,6 +20,7 @@ define([], function(){ ...@@ -20,6 +20,7 @@ define([], function(){
visibleStaticSimTypes: { visibleStaticSimTypes: {
none: "None", none: "None",
voltageField: "Input Potentials",
electricField: "Electric Field", electricField: "Electric Field",
chargeField: "Charge Distribution", chargeField: "Charge Distribution",
capacitanceField: "Capacitance" capacitanceField: "Capacitance"
......
...@@ -50,6 +50,7 @@ define(['underscore', 'backbone', 'threeModel'], function(_, Backbone, three){ ...@@ -50,6 +50,7 @@ define(['underscore', 'backbone', 'threeModel'], function(_, Backbone, three){
return; return;
} }
if (this.get(visibleSim)) this.get(visibleSim).show(height); if (this.get(visibleSim)) this.get(visibleSim).show(height);
three.render();
} }
......
...@@ -75,12 +75,10 @@ define(['underscore', 'threeModel'], function(_, three){ ...@@ -75,12 +75,10 @@ define(['underscore', 'threeModel'], function(_, three){
this._setObject3DPosition(this._offset, this._resolution, height); this._setObject3DPosition(this._offset, this._resolution, height);
this._object3D.visible = true; this._object3D.visible = true;
three.render();
}; };
ESimField.prototype.hide = function(noRender){ ESimField.prototype.hide = function(){
this._object3D.visible = false; this._object3D.visible = false;
if (!noRender) three.render();
}; };
ESimField.prototype._loop = function(data, callback){ ESimField.prototype._loop = function(data, callback){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment