mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 20:11:28 +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.parentJointIndex = null;
|
||||||
properties.localPosition = properties.position;
|
properties.localPosition = properties.position;
|
||||||
properties.localRotation = properties.rotation;
|
properties.localRotation = properties.rotation;
|
||||||
|
properties.velocity = { x: 0, y: 0, z: 0 };
|
||||||
|
properties.angularVelocity = { x: 0, y: 0, z: 0 };
|
||||||
}
|
}
|
||||||
delete properties.actionData;
|
delete properties.actionData;
|
||||||
var newEntityID = Entities.addEntity(properties);
|
var newEntityID = Entities.addEntity(properties);
|
||||||
|
|
Loading…
Reference in a new issue