parent
422a45694a
commit
f985fe12cc
|
@ -157,7 +157,7 @@ AI_FORCE_INLINE
|
||||||
case aiPTI_Float:
|
case aiPTI_Float:
|
||||||
case aiPTI_Double: {
|
case aiPTI_Double: {
|
||||||
// Read as float and cast to bool
|
// 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)) {
|
if (AI_SUCCESS == ::aiGetMaterialFloat(this, pKey, type, idx, &value)) {
|
||||||
pOut = static_cast<bool>(value);
|
pOut = static_cast<bool>(value);
|
||||||
return AI_SUCCESS;
|
return AI_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue