mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 18:02:13 +02:00
possibly fix registration offset issue
This commit is contained in:
parent
7dfa80f666
commit
c9d2d40e1e
1 changed files with 1 additions and 1 deletions
|
@ -1368,7 +1368,7 @@ void EntityItem::recordCreationTime() {
|
|||
const Transform EntityItem::getTransformToCenter(bool& success) const {
|
||||
Transform result = getTransform(success);
|
||||
if (getRegistrationPoint() != ENTITY_ITEM_HALF_VEC3) { // If it is not already centered, translate to center
|
||||
result.postTranslate(ENTITY_ITEM_HALF_VEC3 - getRegistrationPoint()); // Position to center
|
||||
result.postTranslate((ENTITY_ITEM_HALF_VEC3 - getRegistrationPoint()) * getDimensions()); // Position to center
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue