Fix duplicating non-dynamic grabbed entities in edit.js

This commit is contained in:
Ryan Huffman 2019-02-12 10:09:28 -08:00
parent 8faff57033
commit 2728654d35

View file

@ -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);