mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
Guard updateClusterMatrices from unloaded geo
This commit is contained in:
parent
00db095306
commit
6e0d6ee45b
1 changed files with 1 additions and 1 deletions
|
@ -1061,7 +1061,7 @@ void Model::simulateInternal(float deltaTime) {
|
||||||
void Model::updateClusterMatrices(glm::vec3 modelPosition, glm::quat modelOrientation) {
|
void Model::updateClusterMatrices(glm::vec3 modelPosition, glm::quat modelOrientation) {
|
||||||
PerformanceTimer perfTimer("Model::updateClusterMatrices");
|
PerformanceTimer perfTimer("Model::updateClusterMatrices");
|
||||||
|
|
||||||
if (!_needsUpdateClusterMatrices) {
|
if (!_needsUpdateClusterMatrices || !isLoaded()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_needsUpdateClusterMatrices = false;
|
_needsUpdateClusterMatrices = false;
|
||||||
|
|
Loading…
Reference in a new issue