fix broken model transforms

This commit is contained in:
Andrew Meadows 2017-01-19 13:07:50 -08:00
parent 1d6f47e3d8
commit d3af420516

View file

@ -370,6 +370,9 @@ void ModelMeshPartPayload::updateTransformForSkinnedMesh(const Transform& transf
_worldBound += clusterBound;
}
_worldBound.transform(transform);
if (clusterMatrices.size() == 1) {
_transform = _transform.worldTransform(Transform(clusterMatrices[0]));
}
} else {
_worldBound = _localBound;
_worldBound.transform(_drawTransform);