mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 13:53:30 +02:00
cleanup
This commit is contained in:
parent
f563b8ca2e
commit
4e582975b6
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue