Commit 854b4ef8 authored by amandaghassaei's avatar amandaghassaei

small changes

parent df0b4720
......@@ -68,6 +68,8 @@ function initControls(globals){
globals.warn("No crease pattern available for FOLD format.");
return;
}
globals.pausedForPatternView = globals.threeView.running();
globals.model.pause();
globals.navMode = "pattern";
$("#navPattern").parent().addClass("open");
$("#navSimulation").parent().removeClass("open");
......@@ -77,6 +79,7 @@ function initControls(globals){
$("#navPattern").parent().removeClass("open");
setLink("#navSimulation", function(){
globals.navMode = "simulation";
if (globals.pausedForPatternView) globals.model.resume();
$("#navSimulation").parent().addClass("open");
$("#navPattern").parent().removeClass("open");
$("#svgViewer").hide();
......
......@@ -64,6 +64,8 @@ function initGlobals(){
triangulateFOLDexport: false,
exportFoldAngle: false,
pausedForPatternView: false,
userInteractionEnabled: false,
vrEnabled: false
......
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