fixed the shrunken avatar part bug

This commit is contained in:
ZappoMan 2015-06-03 21:49:48 -07:00
parent f1f48afd61
commit 54c4cb829a

View file

@ -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);