mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 07:12:45 +02:00
Fix duplicating non-dynamic grabbed entities in edit.js
This commit is contained in:
parent
8faff57033
commit
2728654d35
1 changed files with 2 additions and 0 deletions
|
@ -284,6 +284,8 @@ SelectionManager = (function() {
|
|||
properties.parentJointIndex = null;
|
||||
properties.localPosition = properties.position;
|
||||
properties.localRotation = properties.rotation;
|
||||
properties.velocity = { x: 0, y: 0, z: 0 };
|
||||
properties.angularVelocity = { x: 0, y: 0, z: 0 };
|
||||
}
|
||||
delete properties.actionData;
|
||||
var newEntityID = Entities.addEntity(properties);
|
||||
|
|
Loading…
Reference in a new issue