mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 23:33:26 +02:00
fixed the shrunken avatar part bug
This commit is contained in:
parent
f1f48afd61
commit
54c4cb829a
1 changed files with 3 additions and 7 deletions
|
@ -2330,21 +2330,17 @@ void Model::renderPart(RenderArgs* args, int meshIndex, int partIndex, bool tran
|
|||
return; // FIXME!
|
||||
}
|
||||
|
||||
if (state.clusterMatrices.size() > 1) {
|
||||
if (isSkinned) {
|
||||
GLBATCH(glUniformMatrix4fv)(locations->clusterMatrices, state.clusterMatrices.size(), false,
|
||||
(const float*)state.clusterMatrices.constData());
|
||||
// batch.setModelTransform(Transform());
|
||||
_transforms[0].setTranslation(_translation);
|
||||
|
||||
_transforms[0] = Transform();
|
||||
_transforms[0].preTranslate(_translation);
|
||||
} else {
|
||||
_transforms[0] = Transform(state.clusterMatrices[0]);
|
||||
_transforms[0].preTranslate(_translation);
|
||||
|
||||
//batch.setModelTransform(Transform(state.clusterMatrices[0]));
|
||||
}
|
||||
batch.setModelTransform(_transforms[0]);
|
||||
|
||||
|
||||
if (mesh.blendshapes.isEmpty()) {
|
||||
batch.setInputFormat(networkMesh._vertexFormat);
|
||||
batch.setInputStream(0, *networkMesh._vertexStream);
|
||||
|
|
Loading…
Reference in a new issue