Commit 790f6eb6 authored by amandaghassaei's avatar amandaghassaei

small changes

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