From b6b6ad780d57220ff0c1fb32e149885812d58d03 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 16 Feb 2017 17:15:52 -0800 Subject: [PATCH] allow isSpotlight to be 0 or 1 --- scripts/system/libraries/entitySelectionTool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/libraries/entitySelectionTool.js b/scripts/system/libraries/entitySelectionTool.js index 596620b59a..ffce0774b5 100644 --- a/scripts/system/libraries/entitySelectionTool.js +++ b/scripts/system/libraries/entitySelectionTool.js @@ -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, {