Commit 790f6eb6 authored by amandaghassaei's avatar amandaghassaei
Browse files

small changes

parent f4a1591a
...@@ -119,8 +119,16 @@ function init3DUI(globals) { ...@@ -119,8 +119,16 @@ function init3DUI(globals) {
} }
return _highlightedObj; return _highlightedObj;
} }
function hideHighlighters(){
highlighter1.getObject3D().visible = false;
// highlighter2.getObject3D().visible = false;
}
// globals.threeView.sceneAdd(raycasterPlane); // globals.threeView.sceneAdd(raycasterPlane);
return {
hideHighlighters: hideHighlighters
}
} }
\ No newline at end of file
...@@ -441,6 +441,7 @@ function initControls(globals){ ...@@ -441,6 +441,7 @@ function initControls(globals){
setCheckbox($("#userInteractionEnabled"), globals.userInteractionEnabled, function(val){ setCheckbox($("#userInteractionEnabled"), globals.userInteractionEnabled, function(val){
globals.userInteractionEnabled = val; globals.userInteractionEnabled = val;
if (!val) globals.UI3D.hideHighlighters();
}); });
function setButtonGroup(id, callback){ function setButtonGroup(id, callback){
......
...@@ -11,7 +11,7 @@ $(function() { ...@@ -11,7 +11,7 @@ $(function() {
}, false); }, false);
globals = initGlobals(); globals = initGlobals();
init3DUI(globals); globals.UI3D = init3DUI(globals);
globals.model = initModel(globals); globals.model = initModel(globals);
globals.staticSolver = initStaticSolver(globals); globals.staticSolver = initStaticSolver(globals);
globals.dynamicSolver = initDynamicSolver(globals); globals.dynamicSolver = initDynamicSolver(globals);
......
Supports Markdown
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