mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:10:38 +02:00
Fix models with 1^3 dimensions never being resized
This commit is contained in:
parent
be23d07621
commit
af897bdef2
1 changed files with 2 additions and 1 deletions
|
@ -210,7 +210,8 @@ void RenderableModelEntityItem::updateModelBounds() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model->getScaleToFitDimensions() != getScaledDimensions() ||
|
if (model->getScaleToFitDimensions() != getScaledDimensions() ||
|
||||||
model->getRegistrationPoint() != getRegistrationPoint()) {
|
model->getRegistrationPoint() != getRegistrationPoint() ||
|
||||||
|
!model->getIsScaledToFit()) {
|
||||||
// The machinery for updateModelBounds will give existing models the opportunity to fix their
|
// The machinery for updateModelBounds will give existing models the opportunity to fix their
|
||||||
// translation/rotation/scale/registration. The first two are straightforward, but the latter two
|
// translation/rotation/scale/registration. The first two are straightforward, but the latter two
|
||||||
// have guards to make sure they don't happen after they've already been set. Here we reset those guards.
|
// have guards to make sure they don't happen after they've already been set. Here we reset those guards.
|
||||||
|
|
Loading…
Reference in a new issue