|
@@ -178,25 +178,18 @@ public:
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef ASSIMP_DOUBLE_PRECISION
|
|
|
|
static inline bool getRealAttribute( XmlNode &xmlNode, const char *name, ai_real &val ) {
|
|
static inline bool getRealAttribute( XmlNode &xmlNode, const char *name, ai_real &val ) {
|
|
pugi::xml_attribute attr = xmlNode.attribute(name);
|
|
pugi::xml_attribute attr = xmlNode.attribute(name);
|
|
if (attr.empty()) {
|
|
if (attr.empty()) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+#ifdef ASSIMP_DOUBLE_PRECISION
|
|
val = attr.as_double();
|
|
val = attr.as_double();
|
|
- return true;
|
|
|
|
- }
|
|
|
|
#else
|
|
#else
|
|
- static inline bool getRealAttribute(XmlNode &xmlNode, const char *name, ai_real &val ) {
|
|
|
|
- pugi::xml_attribute attr = xmlNode.attribute(name);
|
|
|
|
- if (attr.empty()) {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
val = attr.as_float();
|
|
val = attr.as_float();
|
|
|
|
+#endif
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
|
|
|
|
static inline bool getFloatAttribute(XmlNode &xmlNode, const char *name, float &val ) {
|
|
static inline bool getFloatAttribute(XmlNode &xmlNode, const char *name, float &val ) {
|
|
pugi::xml_attribute attr = xmlNode.attribute(name);
|
|
pugi::xml_attribute attr = xmlNode.attribute(name);
|