mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 11:10:03 +02:00
cleanup
This commit is contained in:
parent
f1ec28e169
commit
f55994b993
1 changed files with 10 additions and 2 deletions
|
@ -23,19 +23,27 @@ var selectionManager;
|
|||
var lightOverlayManager;
|
||||
|
||||
if (SHOW_OVERLAYS === true) {
|
||||
|
||||
Script.include('../libraries/gridTool.js');
|
||||
Script.include('../libraries/entitySelectionTool.js');
|
||||
Script.include('../libraries/lightOverlayManager.js');
|
||||
|
||||
var grid = Grid();
|
||||
gridTool = GridTool({
|
||||
horizontalGrid: grid
|
||||
});
|
||||
gridTool.setVisible(false);
|
||||
|
||||
selectionDisplay = SelectionDisplay;
|
||||
selectionManager = SelectionManager;
|
||||
Script.include('../libraries/lightOverlayManager.js');
|
||||
lightOverlayManager = new LightOverlayManager();
|
||||
selectionManager.addEventListener(function() {
|
||||
selectionDisplay.updateHandles();
|
||||
lightOverlayManager.updatePositions();
|
||||
});
|
||||
|
||||
lightOverlayManager.setVisible(true);
|
||||
}
|
||||
|
||||
// var entityResult = Entities.findRayIntersection(pickRay, true); // want precision picking
|
||||
// var pickRay = Camera.computePickRay(event.x, event.y);
|
||||
// var lightResult = lightOverlayManager.findRayIntersection(pickRay)
|
||||
|
|
Loading…
Reference in a new issue