mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:17:14 +02:00
changes from CR
This commit is contained in:
parent
d63c4d11c7
commit
d689a43678
1 changed files with 2 additions and 2 deletions
|
@ -227,9 +227,9 @@ var toolBar = (function () {
|
||||||
var position = getPositionToCreateEntity();
|
var position = getPositionToCreateEntity();
|
||||||
var entityID = null;
|
var entityID = null;
|
||||||
if (position !== null && position !== undefined) {
|
if (position !== null && position !== undefined) {
|
||||||
position = grid.snapToSurface(grid.snapToGrid(position, false, dimensions), dimensions),
|
position = grid.snapToSurface(grid.snapToGrid(position, false, dimensions), dimensions);
|
||||||
properties.position = position;
|
properties.position = position;
|
||||||
properties.userData = JSON.stringify({ "grabbableKey": { "grabbable": true } });
|
properties.userData = JSON.stringify({ grabbableKey: { grabbable: true } });
|
||||||
entityID = Entities.addEntity(properties);
|
entityID = Entities.addEntity(properties);
|
||||||
if (properties.type == "ParticleEffect") {
|
if (properties.type == "ParticleEffect") {
|
||||||
selectParticleEntity(entityID);
|
selectParticleEntity(entityID);
|
||||||
|
|
Loading…
Reference in a new issue