mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 09:44:33 +02:00
Merge pull request #14080 from huffman/fix/111-models-not-being-resized
Fix models with 1^3 dimensions never being resized
This commit is contained in:
commit
658c74a1c6
1 changed files with 2 additions and 1 deletions
|
@ -210,7 +210,8 @@ void RenderableModelEntityItem::updateModelBounds() {
|
|||
}
|
||||
|
||||
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
|
||||
// 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.
|
||||
|
|
Loading…
Reference in a new issue