enable grabbable property for all newly created entities

This commit is contained in:
Triplelexx 2017-04-24 21:33:08 +01:00
parent a62a44ff6a
commit d63c4d11c7

View file

@ -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);