Guard updateClusterMatrices from unloaded geo

This commit is contained in:
Zach Pomerantz 2016-03-30 16:04:00 -07:00
parent 00db095306
commit 6e0d6ee45b

View file

@ -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;