mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:18:36 +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) {
|
if (selectionManager.selections.length == 1) {
|
||||||
var properties = Entities.getEntityProperties(selectionManager.selections[0]);
|
var properties = Entities.getEntityProperties(selectionManager.selections[0]);
|
||||||
if (properties.type == "Light" && properties.isSpotlight === true) {
|
if (properties.type == "Light" && properties.isSpotlight) {
|
||||||
stretchHandlesVisible = false;
|
stretchHandlesVisible = false;
|
||||||
extendedStretchHandlesVisible = false;
|
extendedStretchHandlesVisible = false;
|
||||||
|
|
||||||
|
@ -1901,7 +1901,7 @@ SelectionDisplay = (function() {
|
||||||
Overlays.editOverlay(grabberPointLightN, {
|
Overlays.editOverlay(grabberPointLightN, {
|
||||||
visible: false
|
visible: false
|
||||||
});
|
});
|
||||||
} else if (properties.type == "Light" && properties.isSpotlight === false) {
|
} else if (properties.type == "Light" && !properties.isSpotlight) {
|
||||||
stretchHandlesVisible = false;
|
stretchHandlesVisible = false;
|
||||||
extendedStretchHandlesVisible = false;
|
extendedStretchHandlesVisible = false;
|
||||||
Overlays.editOverlay(grabberPointLightT, {
|
Overlays.editOverlay(grabberPointLightT, {
|
||||||
|
|
Loading…
Reference in a new issue