Skip to content

Commit

Permalink
OpenDDLParser: latest greatest.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Oct 31, 2015
1 parent 6f75ea5 commit eadc611
Show file tree
Hide file tree
Showing 9 changed files with 455 additions and 65 deletions.
2 changes: 1 addition & 1 deletion code/Q3BSPFileImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void Q3BSPFileImporter::CreateNodes( const Q3BSP::Q3BSPModel *pModel, aiScene* p
matIdx++;
}

pScene->mNumMeshes = MeshArray.size();
pScene->mNumMeshes = static_cast<unsigned int>( MeshArray.size() );
if ( pScene->mNumMeshes > 0 )
{
pScene->mMeshes = new aiMesh*[ pScene->mNumMeshes ];
Expand Down
2 changes: 1 addition & 1 deletion contrib/openddlparser/code/DDLNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ const std::string &DDLNode::getType() const {
return m_type;
}


void DDLNode::setName( const std::string &name ) {
m_name = name;
}
Expand Down Expand Up @@ -151,6 +150,7 @@ Property *DDLNode::findPropertyByName( const std::string &name ) {
if( ddl_nullptr == m_properties ) {
return ddl_nullptr;
}

Property *current( m_properties );
while( ddl_nullptr != current ) {
int res = strncmp( current->m_key->m_text.m_buffer, name.c_str(), name.size() );
Expand Down
Loading

0 comments on commit eadc611

Please sign in to comment.