mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
call Model::scaleToFit() before update render items
This commit is contained in:
parent
db9c3cc103
commit
490483fde8
1 changed files with 1 additions and 0 deletions
|
@ -215,6 +215,7 @@ void RenderableModelEntityItem::updateModelBounds() {
|
||||||
model->setScaleToFit(true, getDimensions());
|
model->setScaleToFit(true, getDimensions());
|
||||||
model->setSnapModelToRegistrationPoint(true, getRegistrationPoint());
|
model->setSnapModelToRegistrationPoint(true, getRegistrationPoint());
|
||||||
updateRenderItems = true;
|
updateRenderItems = true;
|
||||||
|
model->scaleToFit();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool success;
|
bool success;
|
||||||
|
|
Loading…
Reference in a new issue