From 3439a2e54682c68a2dec6ae118fb2bd1437013b9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 28 Jul 2006 00:26:13 +0000 Subject: [PATCH] if a texture is registered, we can use it whether it exists as a file or not (eg. RenderTargets) --- stepmania/src/Sprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index 6a77cee915..4cf28082b5 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -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 );