Merge pull request #3 from AlericInglewood/aleric-00-which_lod

Aleric 00 which lod
master
Beq Janus 2023-08-27 20:42:29 +01:00 committed by GitHub
commit bd3fe4cb24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2523,7 +2523,7 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d
out << "Invalid level of detail: " << which_lod;
LL_WARNS() << out.str() << LL_ENDL;
LLFloaterModelPreview::addStringToLog(out, true); // <FS:Beq/> if you don't flash the log tab on error when do you?
assert(lod >= -1 && lod < LLModel::NUM_LODS);
assert(which_lod >= -1 && which_lod < LLModel::NUM_LODS); // <FS:PR-Aleric/> use the correct variable (which_lod).
return;
}