mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
avoid for a new Transform for identity gpu::Batch::setTransformModel when rendering model part which are blend shapes
This commit is contained in:
parent
5f0fdeccb2
commit
6096a61ecc
1 changed files with 1 additions and 4 deletions
|
@ -1866,11 +1866,8 @@ int Model::renderMeshes(gpu::Batch& batch, RenderMode mode, bool translucent, fl
|
|||
if (state.clusterMatrices.size() > 1) {
|
||||
GLBATCH(glUniformMatrix4fv)(skinLocations->clusterMatrices, state.clusterMatrices.size(), false,
|
||||
(const float*)state.clusterMatrices.constData());
|
||||
|
||||
gpu::TransformPointer modelTransform(new gpu::Transform());
|
||||
batch.setModelTransform(modelTransform);
|
||||
batch.setModelTransform(gpu::TransformPointer());
|
||||
} else {
|
||||
|
||||
gpu::TransformPointer modelTransform(new gpu::Transform(state.clusterMatrices[0]));
|
||||
batch.setModelTransform(modelTransform);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue