Commit 526d9b19 authored by amandaghassaei's avatar amandaghassaei

eod

parent f5250244
...@@ -245,6 +245,7 @@ function initControls(globals){ ...@@ -245,6 +245,7 @@ function initControls(globals){
if (numSteps<=0) return; if (numSteps<=0) return;
$("#numSteps").val(numSteps); $("#numSteps").val(numSteps);
globals.model.step(numSteps); globals.model.step(numSteps);
$("#reset").show();
}); });
setInput("#strainClip", globals.strainClip, function(val){ setInput("#strainClip", globals.strainClip, function(val){
......
...@@ -60,6 +60,7 @@ function initModel(globals){ ...@@ -60,6 +60,7 @@ function initModel(globals){
} }
object3D.material = material; object3D.material = material;
object3D2.material = material2; object3D2.material = material2;
globals.threeView.render();
} }
function updateEdgeVisibility(){ function updateEdgeVisibility(){
...@@ -73,6 +74,7 @@ function initModel(globals){ ...@@ -73,6 +74,7 @@ function initModel(globals){
for (var i=0;i<creases.length;i++){ for (var i=0;i<creases.length;i++){
creases[i].setVisibility(); creases[i].setVisibility();
} }
globals.threeView.render();
} }
function updateMeshVisibility(){ function updateMeshVisibility(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment