This commit is contained in:
Liv Erickson 2018-01-05 18:03:20 -08:00
parent f563b8ca2e
commit 4e582975b6

View file

@ -279,13 +279,11 @@ var toolBar = (function () {
position = grid.snapToSurface(grid.snapToGrid(position, false, dimensions), dimensions);
properties.position = position;
if (Menu.isOptionChecked(GRABBABLE_ENTITIES_MENU_ITEM)) {
if (Menu.isOptionChecked(GRABBABLE_ENTITIES_MENU_ITEM) &&
!(properties.type === "Zone" || properties.type === "Light")) {
properties.userData = JSON.stringify({ grabbableKey: { grabbable: true } });
}
if (properties.type === "Zone" || properties.type === "Light") {
} else {
properties.userData = JSON.stringify({ grabbableKey: { grabbable: false } });
properties.dynamic = false;
}
entityID = Entities.addEntity(properties);