|
@@ -213,7 +213,11 @@ static void propId2StdString( Property *prop, std::string &name, std::string &ke
|
|
|
}
|
|
|
|
|
|
if ( nullptr != prop->m_key ) {
|
|
|
+#ifdef ASSIMP_USE_HUNTER
|
|
|
+ name = prop->m_key->m_text.m_buffer;
|
|
|
+#else
|
|
|
name = prop->m_key->m_buffer;
|
|
|
+#endif
|
|
|
if ( Value::ddl_string == prop->m_value->m_type ) {
|
|
|
key = prop->m_value->getString();
|
|
|
}
|
|
@@ -498,7 +502,11 @@ static void getRefNames( DDLNode *node, std::vector<std::string> &names ) {
|
|
|
for( size_t i = 0; i < ref->m_numRefs; i++ ) {
|
|
|
Name *currentName( ref->m_referencedName[ i ] );
|
|
|
if( nullptr != currentName && nullptr != currentName->m_id ) {
|
|
|
+#ifdef ASSIMP_USE_HUNTER
|
|
|
+ const std::string name( currentName->m_id->m_text.m_buffer );
|
|
|
+#else
|
|
|
const std::string name( currentName->m_id->m_buffer );
|
|
|
+#endif
|
|
|
if( !name.empty() ) {
|
|
|
names.push_back( name );
|
|
|
}
|
|
@@ -1039,7 +1047,11 @@ void OpenGEXImporter::handleColorNode( ODDLParser::DDLNode *node, aiScene * /*pS
|
|
|
col.g = col4.g;
|
|
|
col.b = col4.b;
|
|
|
}
|
|
|
+#ifdef ASSIMP_USE_HUNTER
|
|
|
+ const ColorType colType( getColorType( &prop->m_key->m_text ) );
|
|
|
+#else
|
|
|
const ColorType colType( getColorType( prop->m_key ) );
|
|
|
+#endif
|
|
|
if( DiffuseColor == colType ) {
|
|
|
m_currentMaterial->AddProperty( &col, 1, AI_MATKEY_COLOR_DIFFUSE );
|
|
|
} else if( SpecularColor == colType ) {
|