mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 23:02:24 +02:00
Revert "Fix for angularVelocity zeroing out on duplication or undo"
This reverts commit 9c96a10f6c
.
This commit is contained in:
parent
1a44054c49
commit
f86075b2dd
1 changed files with 2 additions and 13 deletions
|
@ -29,17 +29,6 @@ Script.include([
|
|||
SelectionManager = (function() {
|
||||
var that = {};
|
||||
|
||||
/**
|
||||
* @description Removes known to be broken properties from a properties object
|
||||
* @param properties
|
||||
* @return properties
|
||||
*/
|
||||
var fixRemoveBrokenProperties = function (properties) {
|
||||
// Reason: Entity property is always set to 0,0,0 which causes it to override angularVelocity (see MS17131)
|
||||
delete properties.localAngularVelocity;
|
||||
return properties;
|
||||
}
|
||||
|
||||
// FUNCTION: SUBSCRIBE TO UPDATE MESSAGES
|
||||
function subscribeToUpdateMessages() {
|
||||
Messages.subscribe("entityToolUpdates");
|
||||
|
@ -130,7 +119,7 @@ SelectionManager = (function() {
|
|||
that.savedProperties = {};
|
||||
for (var i = 0; i < that.selections.length; i++) {
|
||||
var entityID = that.selections[i];
|
||||
that.savedProperties[entityID] = fixRemoveBrokenProperties(Entities.getEntityProperties(entityID));
|
||||
that.savedProperties[entityID] = Entities.getEntityProperties(entityID);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -258,7 +247,7 @@ SelectionManager = (function() {
|
|||
var originalEntityID = entitiesToDuplicate[i];
|
||||
var properties = that.savedProperties[originalEntityID];
|
||||
if (properties === undefined) {
|
||||
properties = fixRemoveBrokenProperties(Entities.getEntityProperties(originalEntityID));
|
||||
properties = Entities.getEntityProperties(originalEntityID);
|
||||
}
|
||||
if (!properties.locked && (!properties.clientOnly || properties.owningAvatarID === MyAvatar.sessionUUID)) {
|
||||
if (nonDynamicEntityIsBeingGrabbedByAvatar(properties)) {
|
||||
|
|
Loading…
Reference in a new issue