assimp/issues/702: fix resource leak and use initializer list for all

attributes of the loader instance.
This commit is contained in:
Kim Kulling
2015-12-06 12:18:33 +01:00
parent 8736907009
commit 6641188a8e
3 changed files with 45 additions and 14 deletions

View File

@@ -801,6 +801,19 @@ void OpenGEXImporter::handleColorNode( ODDLParser::DDLNode *node, aiScene *pScen
}
}
//------------------------------------------------------------------------------------------------
bool isSpecialRootDir(aiString &texName) {
if (texName.length < 2) {
return false;
}
if (texName.data[0] = '/' || texName.data[1] == '/') {
return true;
}
return false;
}
//------------------------------------------------------------------------------------------------
void OpenGEXImporter::handleTextureNode( ODDLParser::DDLNode *node, aiScene *pScene ) {
if( NULL == node ) {