mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
[Case 6491] eslint pass: Addresses curly bracket, keyword spacing issues.
* eslint pass using .eslintrc.js Changes Committed: modified: scripts/system/libraries/entitySelectionTool.js
This commit is contained in:
parent
97ecf84f3d
commit
cb264b5552
1 changed files with 12 additions and 4 deletions
|
@ -238,8 +238,14 @@ SelectionManager = (function() {
|
|||
|
||||
// Normalize degrees to be in the range (-180, 180]
|
||||
function normalizeDegrees(degrees) {
|
||||
while (degrees > 180) degrees -= 360;
|
||||
while (degrees <= -180) degrees += 360;
|
||||
while (degrees > 180) {
|
||||
degrees -= 360;
|
||||
}
|
||||
|
||||
while (degrees <= -180) {
|
||||
degrees += 360;
|
||||
}
|
||||
|
||||
return degrees;
|
||||
}
|
||||
|
||||
|
@ -2143,7 +2149,9 @@ SelectionDisplay = (function() {
|
|||
var curBoxPosition = Vec3.sum(props.position, offset);
|
||||
|
||||
var color = {red: 255, green: 128, blue: 0};
|
||||
if (i >= selectionManager.selections.length - 1) color = {red: 255, green: 255, blue: 64};
|
||||
if (i >= selectionManager.selections.length - 1) {
|
||||
color = {red: 255, green: 255, blue: 64};
|
||||
}
|
||||
|
||||
Overlays.editOverlay(selectionBoxes[i], {
|
||||
position: curBoxPosition,
|
||||
|
@ -4134,7 +4142,7 @@ SelectionDisplay = (function() {
|
|||
print(" Triggering ActiveTool(" + activeTool.mode + ")'s onEnd");
|
||||
}
|
||||
activeTool.onEnd(event);
|
||||
}else if (wantDebug) {
|
||||
} else if (wantDebug) {
|
||||
print(" ActiveTool(" + activeTool.mode + ")'s missing onEnd");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue