mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
enable grabbable property for all newly created entities
This commit is contained in:
parent
a62a44ff6a
commit
d63c4d11c7
1 changed files with 2 additions and 1 deletions
|
@ -228,7 +228,8 @@ var toolBar = (function () {
|
|||
var entityID = null;
|
||||
if (position !== null && position !== undefined) {
|
||||
position = grid.snapToSurface(grid.snapToGrid(position, false, dimensions), dimensions),
|
||||
properties.position = position;
|
||||
properties.position = position;
|
||||
properties.userData = JSON.stringify({ "grabbableKey": { "grabbable": true } });
|
||||
entityID = Entities.addEntity(properties);
|
||||
if (properties.type == "ParticleEffect") {
|
||||
selectParticleEntity(entityID);
|
||||
|
|
Loading…
Reference in a new issue