#ifndef AI_MATERIAL_INL_INC
#define AI_MATERIAL_INL_INC
+// ---------------------------------------------------------------------------
+inline aiPropertyTypeInfo ai_real_to_property_type_info(float)
+{
+ return aiPTI_Float;
+}
+
+inline aiPropertyTypeInfo ai_real_to_property_type_info(double)
+{
+ return aiPTI_Double;
+}
+// ---------------------------------------------------------------------------
+
//! @cond never
// ---------------------------------------------------------------------------
{
return AddBinaryProperty((const void*)pInput,
pNumValues * sizeof(aiUVTransform),
- pKey,type,index,aiPTI_Float); //TODO could be Double ...
+ pKey,type,index,ai_real_to_property_type_info(pInput->mRotation));
}
// ---------------------------------------------------------------------------
{
return AddBinaryProperty((const void*)pInput,
pNumValues * sizeof(aiColor4D),
- pKey,type,index,aiPTI_Float); //TODO could be Double ...
+ pKey,type,index,ai_real_to_property_type_info(pInput->a));
}
// ---------------------------------------------------------------------------
{
return AddBinaryProperty((const void*)pInput,
pNumValues * sizeof(aiColor3D),
- pKey,type,index,aiPTI_Float); //TODO could be Double ...
+ pKey,type,index,ai_real_to_property_type_info(pInput->b));
}
// ---------------------------------------------------------------------------
{
return AddBinaryProperty((const void*)pInput,
pNumValues * sizeof(aiVector3D),
- pKey,type,index,aiPTI_Float); //TODO could be Double ...
+ pKey,type,index,ai_real_to_property_type_info(pInput->x));
}
// ---------------------------------------------------------------------------