mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +02:00
Merge pull request #14902 from huffman/fix/duplicating-grabbed-entities
Case 21029: Fix duplicating non-dynamic grabbed entities in edit.js
This commit is contained in:
commit
158e255319
1 changed files with 4 additions and 0 deletions
|
@ -285,6 +285,10 @@ SelectionManager = (function() {
|
||||||
properties.localPosition = properties.position;
|
properties.localPosition = properties.position;
|
||||||
properties.localRotation = properties.rotation;
|
properties.localRotation = properties.rotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
properties.localVelocity = Vec3.ZERO;
|
||||||
|
properties.localAngularVelocity = Vec3.ZERO;
|
||||||
|
|
||||||
delete properties.actionData;
|
delete properties.actionData;
|
||||||
var newEntityID = Entities.addEntity(properties);
|
var newEntityID = Entities.addEntity(properties);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue