From d575616a6d2bb2a906d2ea5c6f484d1d853fb45f Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Sat, 9 May 2020 15:08:38 -0400 Subject: [PATCH] Code Adjustments. Constant used for ENTIRE_DOMAIN_SCAN_RADIUS instead of 17000 Missing spaces, and line too long being adjusted. --- scripts/system/create/edit.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/system/create/edit.js b/scripts/system/create/edit.js index 55461c33a0..166b6efc88 100644 --- a/scripts/system/create/edit.js +++ b/scripts/system/create/edit.js @@ -42,6 +42,7 @@ var CreateWindow = Script.require('./modules/createWindow.js'); var TITLE_OFFSET = 60; var CREATE_TOOLS_WIDTH = 490; var MAX_DEFAULT_ENTITY_LIST_HEIGHT = 942; +var ENTIRE_DOMAIN_SCAN_RADIUS = 22628; var DEFAULT_IMAGE = "https://hifi-content.s3.amazonaws.com/DomainContent/production/no-image.jpg"; @@ -563,7 +564,8 @@ var toolBar = (function () { if (!properties.grab) { properties.grab = {}; if (Menu.isOptionChecked(MENU_CREATE_ENTITIES_GRABBABLE) && - !(properties.type === "Zone" || properties.type === "Light" || properties.type === "ParticleEffect" || properties.type === "Web")) { + !(properties.type === "Zone" || properties.type === "Light" + || properties.type === "ParticleEffect" || properties.type === "Web")) { properties.grab.grabbable = true; } else { properties.grab.grabbable = false; @@ -2890,8 +2892,8 @@ selectionDisplay.onSpaceModeChange = function(spaceMode) { }; function getExistingZoneList() { - var center = {"x": 0, "y": 0, "z": 0}; - var existingZoneIDs = Entities.findEntitiesByType("Zone", center, 17000); + var center = { "x": 0, "y": 0, "z": 0 }; + var existingZoneIDs = Entities.findEntitiesByType("Zone", center, ENTIRE_DOMAIN_SCAN_RADIUS); var listExistingZones = []; var thisZone = {}; var properties;