if a texture is registered, we can use it whether it exists as a file or not (eg. RenderTargets)
This commit is contained in:
@@ -125,7 +125,8 @@ void Sprite::LoadFromNode( const RString& sDir, const XNode* pNode )
|
||||
|
||||
if( !sPath.empty() )
|
||||
{
|
||||
ActorUtil::ResolvePath( sPath, sDir );
|
||||
if( !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
|
||||
ActorUtil::ResolvePath( sPath, sDir );
|
||||
|
||||
// Load the texture
|
||||
LoadFromTexture( sPath );
|
||||
|
||||
Reference in New Issue
Block a user