mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +02:00
Merge pull request #15117 from SamGondelman/wearables
Case 21596: Fix wearable scale on position change
This commit is contained in:
commit
d11c04a19d
2 changed files with 2 additions and 2 deletions
|
@ -1873,7 +1873,7 @@ void EntityItem::setParentID(const QUuid& value) {
|
|||
|
||||
glm::vec3 EntityItem::getScaledDimensions() const {
|
||||
glm::vec3 scale = getSNScale();
|
||||
return _unscaledDimensions * scale;
|
||||
return getUnscaledDimensions() * scale;
|
||||
}
|
||||
|
||||
void EntityItem::setScaledDimensions(const glm::vec3& value) {
|
||||
|
|
|
@ -4209,7 +4209,7 @@ void EntityItemProperties::copySimulationRestrictedProperties(const EntityItemPo
|
|||
setAcceleration(entity->getAcceleration());
|
||||
}
|
||||
if (!_localDimensionsChanged && !_dimensionsChanged) {
|
||||
setDimensions(entity->getScaledDimensions());
|
||||
setLocalDimensions(entity->getScaledDimensions());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue