assimp/issues/702: fix resource leak and use initializer list for all
attributes of the loader instance.
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user