mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
another attempt to fix model transform
This commit is contained in:
parent
d3af420516
commit
b7c1bfaf58
1 changed files with 2 additions and 2 deletions
|
@ -369,13 +369,13 @@ void ModelMeshPartPayload::updateTransformForSkinnedMesh(const Transform& transf
|
|||
clusterBound.transform(clusterMatrix);
|
||||
_worldBound += clusterBound;
|
||||
}
|
||||
_worldBound.transform(transform);
|
||||
_worldBound.transform(_transform);
|
||||
if (clusterMatrices.size() == 1) {
|
||||
_transform = _transform.worldTransform(Transform(clusterMatrices[0]));
|
||||
}
|
||||
} else {
|
||||
_worldBound = _localBound;
|
||||
_worldBound.transform(_drawTransform);
|
||||
_worldBound.transform(_transform);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue