mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 01:22:08 +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.localRotation = properties.rotation;
|
||||
}
|
||||
|
||||
properties.localVelocity = Vec3.ZERO;
|
||||
properties.localAngularVelocity = Vec3.ZERO;
|
||||
|
||||
delete properties.actionData;
|
||||
var newEntityID = Entities.addEntity(properties);
|
||||
|
||||
|
|
Loading…
Reference in a new issue