throw if texture fails to load
This commit is contained in:
@@ -388,8 +388,10 @@ bool Model::LoadMilkshapeAscii( CString sPath )
|
|||||||
if( IsAFile(sTexturePath) )
|
if( IsAFile(sTexturePath) )
|
||||||
Material.aniTexture.Load( sTexturePath );
|
Material.aniTexture.Load( sTexturePath );
|
||||||
else
|
else
|
||||||
LOG->Warn( "\"%s\" references a texture \"%s\" that does not exist",
|
{
|
||||||
sPath.c_str(), sTexturePath.c_str() );
|
CString sError = ssprintf( "'%s' references a texture '%s' that does not exist", sPath.c_str(), sTexturePath.c_str() );
|
||||||
|
RageException::Throw( sError );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// alpha texture
|
// alpha texture
|
||||||
|
|||||||
Reference in New Issue
Block a user