Fix compile error

When enable macro ASSIMP_DOUBLE_PRECISION
pull/4473/head
Danny许 2022-03-31 11:20:18 +08:00 committed by GitHub
parent 422a45694a
commit f985fe12cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ AI_FORCE_INLINE
case aiPTI_Float:
case aiPTI_Double: {
// Read as float and cast to bool
float value = 0.0f;
ai_real value = 0.0f;
if (AI_SUCCESS == ::aiGetMaterialFloat(this, pKey, type, idx, &value)) {
pOut = static_cast<bool>(value);
return AI_SUCCESS;