mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +02:00
allow isSpotlight to be 0 or 1
This commit is contained in:
parent
21b0e45b0f
commit
b6b6ad780d
1 changed files with 2 additions and 2 deletions
|
@ -1806,7 +1806,7 @@ SelectionDisplay = (function() {
|
|||
|
||||
if (selectionManager.selections.length == 1) {
|
||||
var properties = Entities.getEntityProperties(selectionManager.selections[0]);
|
||||
if (properties.type == "Light" && properties.isSpotlight === true) {
|
||||
if (properties.type == "Light" && properties.isSpotlight) {
|
||||
stretchHandlesVisible = false;
|
||||
extendedStretchHandlesVisible = false;
|
||||
|
||||
|
@ -1901,7 +1901,7 @@ SelectionDisplay = (function() {
|
|||
Overlays.editOverlay(grabberPointLightN, {
|
||||
visible: false
|
||||
});
|
||||
} else if (properties.type == "Light" && properties.isSpotlight === false) {
|
||||
} else if (properties.type == "Light" && !properties.isSpotlight) {
|
||||
stretchHandlesVisible = false;
|
||||
extendedStretchHandlesVisible = false;
|
||||
Overlays.editOverlay(grabberPointLightT, {
|
||||
|
|
Loading…
Reference in a new issue