mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Remove unnecessary assert in Model.cpp
This clause inside was not longer valid - it is a valid state for part->_meshIndex < _modelMeshRenderItems.size(). A better check might be to compare it to the size of _meshStates which we use below, but we use _meshStates.at(...) which will do the bounds checking, which makes the assert unnecessary.
This commit is contained in:
parent
9a4b624029
commit
8eacf0ad4b
1 changed files with 0 additions and 1 deletions
|
@ -1052,7 +1052,6 @@ void Model::updateRig(float deltaTime, glm::mat4 parentTransform) {
|
|||
|
||||
void Model::computeMeshPartLocalBounds() {
|
||||
for (auto& part : _modelMeshRenderItems) {
|
||||
assert(part->_meshIndex < _modelMeshRenderItems.size());
|
||||
const Model::MeshState& state = _meshStates.at(part->_meshIndex);
|
||||
part->computeAdjustedLocalBound(state.clusterMatrices);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue