mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 20:44:14 +02:00
fix model scales
This commit is contained in:
parent
5fa379fea2
commit
e9422cbf1e
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ void Model::updateRenderItems() {
|
|||
// Ensure the model geometry was not reset between frames
|
||||
if (deleteGeometryCounter == data._model->_deleteGeometryCounter) {
|
||||
Transform modelTransform = data._model->getTransform();
|
||||
modelTransform.setScale(glm::vec3(1.0f));
|
||||
|
||||
// lazy update of cluster matrices used for rendering. We need to update them here, so we can correctly update the bounding box.
|
||||
data._model->updateClusterMatrices();
|
||||
|
|
Loading…
Reference in a new issue