throw if texture fails to load

This commit is contained in:
Chris Danford
2004-01-20 03:31:53 +00:00
parent 54545e2349
commit 81a1cf8378
+4 -2
View File
@@ -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