Fix setup of embedded texture loading
This commit is contained in:
@@ -325,9 +325,10 @@ int CMaterialManager::FindValidPath(aiString* p_szString)
|
||||
|
||||
// first check whether we can directly load the file
|
||||
FILE* pFile = fopen(p_szString->data,"rb");
|
||||
if (pFile)fclose(pFile);
|
||||
else
|
||||
{
|
||||
if (pFile) {
|
||||
fclose(pFile);
|
||||
}
|
||||
else {
|
||||
// check whether we can use the directory of the asset as relative base
|
||||
char szTemp[MAX_PATH*2], tmp2[MAX_PATH*2];
|
||||
strcpy(szTemp, g_szFileName);
|
||||
|
||||
Reference in New Issue
Block a user