mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 08:53:28 +02:00
Make zones and lights not default grabbable
This commit is contained in:
parent
0c38a5598f
commit
f563b8ca2e
1 changed files with 7 additions and 0 deletions
|
@ -239,6 +239,7 @@ var toolBar = (function () {
|
|||
var dimensions = properties.dimensions ? properties.dimensions : DEFAULT_DIMENSIONS;
|
||||
var position = getPositionToCreateEntity();
|
||||
var entityID = null;
|
||||
|
||||
if (position !== null && position !== undefined) {
|
||||
var direction;
|
||||
if (Camera.mode === "entity" || Camera.mode === "independent") {
|
||||
|
@ -281,6 +282,12 @@ var toolBar = (function () {
|
|||
if (Menu.isOptionChecked(GRABBABLE_ENTITIES_MENU_ITEM)) {
|
||||
properties.userData = JSON.stringify({ grabbableKey: { grabbable: true } });
|
||||
}
|
||||
|
||||
if (properties.type === "Zone" || properties.type === "Light") {
|
||||
properties.userData = JSON.stringify({ grabbableKey: { grabbable: false } });
|
||||
properties.dynamic = false;
|
||||
}
|
||||
|
||||
entityID = Entities.addEntity(properties);
|
||||
|
||||
if (properties.type === "ParticleEffect") {
|
||||
|
|
Loading…
Reference in a new issue