mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 23:33:48 +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) {
|
||||
PerformanceTimer perfTimer("Model::updateClusterMatrices");
|
||||
|
||||
if (!_needsUpdateClusterMatrices) {
|
||||
if (!_needsUpdateClusterMatrices || !isLoaded()) {
|
||||
return;
|
||||
}
|
||||
_needsUpdateClusterMatrices = false;
|
||||
|
|
Loading…
Reference in a new issue