mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:36:56 +02:00
Fix -Wunused-variable for MeshPart ShapeKeys
This commit is contained in:
parent
0c31c072a3
commit
9e7e6be549
1 changed files with 1 additions and 4 deletions
|
@ -225,8 +225,6 @@ void MeshPartPayload::render(RenderArgs* args) const {
|
||||||
|
|
||||||
gpu::Batch& batch = *(args->_batch);
|
gpu::Batch& batch = *(args->_batch);
|
||||||
|
|
||||||
ShapeKey key = getShapeKey();
|
|
||||||
|
|
||||||
auto locations = args->_pipeline->locations;
|
auto locations = args->_pipeline->locations;
|
||||||
assert(locations);
|
assert(locations);
|
||||||
|
|
||||||
|
@ -468,8 +466,7 @@ void ModelMeshPartPayload::render(RenderArgs* args) const {
|
||||||
|
|
||||||
gpu::Batch& batch = *(args->_batch);
|
gpu::Batch& batch = *(args->_batch);
|
||||||
|
|
||||||
ShapeKey key = getShapeKey();
|
if (!getShapeKey().isValid()) {
|
||||||
if (!key.isValid()) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue