mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 08:06:11 +02:00
fix broken model transforms
This commit is contained in:
parent
1d6f47e3d8
commit
d3af420516
1 changed files with 3 additions and 0 deletions
|
@ -370,6 +370,9 @@ void ModelMeshPartPayload::updateTransformForSkinnedMesh(const Transform& transf
|
||||||
_worldBound += clusterBound;
|
_worldBound += clusterBound;
|
||||||
}
|
}
|
||||||
_worldBound.transform(transform);
|
_worldBound.transform(transform);
|
||||||
|
if (clusterMatrices.size() == 1) {
|
||||||
|
_transform = _transform.worldTransform(Transform(clusterMatrices[0]));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
_worldBound = _localBound;
|
_worldBound = _localBound;
|
||||||
_worldBound.transform(_drawTransform);
|
_worldBound.transform(_drawTransform);
|
||||||
|
|
Loading…
Reference in a new issue