mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 13:02:24 +02:00
fix soft entity popping
This commit is contained in:
parent
0e46007d84
commit
4371723145
1 changed files with 5 additions and 3 deletions
|
@ -181,9 +181,11 @@ void RenderableModelEntityItem::updateModelBounds() {
|
|||
updateRenderItems = true;
|
||||
}
|
||||
|
||||
if (model->getScaleToFitDimensions() != getScaledDimensions() ||
|
||||
model->getRegistrationPoint() != getRegistrationPoint() ||
|
||||
!model->getIsScaledToFit()) {
|
||||
bool overridingModelTransform = model->isOverridingModelTransformAndOffset();
|
||||
if (!overridingModelTransform &&
|
||||
(model->getScaleToFitDimensions() != getScaledDimensions() ||
|
||||
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