Only disable odd dimension warning when loading song backgrounds.
This commit is contained in:
@@ -116,11 +116,6 @@ void Sprite::LoadFromNode( const XNode* pNode )
|
||||
if( !sPath.empty() && !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
|
||||
ActorUtil::GetAttrPath( pNode, "Texture", sPath );
|
||||
|
||||
// HACK. Let Sprites explicitly disable the dimension warning.
|
||||
bool bDisableDimensionWarning = false;
|
||||
if( pNode->GetAttrValue("DisableDimensionWarning", bDisableDimensionWarning) && bDisableDimensionWarning )
|
||||
TEXTUREMAN->DisableOddDimensionWarning();
|
||||
|
||||
if( !sPath.empty() )
|
||||
{
|
||||
// Load the texture
|
||||
@@ -212,9 +207,6 @@ void Sprite::LoadFromNode( const XNode* pNode )
|
||||
}
|
||||
}
|
||||
|
||||
if( bDisableDimensionWarning )
|
||||
TEXTUREMAN->EnableOddDimensionWarning();
|
||||
|
||||
Actor::LoadFromNode( pNode );
|
||||
}
|
||||
|
||||
@@ -978,7 +970,9 @@ public:
|
||||
static int LoadBackground( T* p, lua_State *L )
|
||||
{
|
||||
RageTextureID ID( SArg(1) );
|
||||
TEXTUREMAN->DisableOddDimensionWarning();
|
||||
p->Load( Sprite::SongBGTexture(ID) );
|
||||
TEXTUREMAN->EnableOddDimensionWarning();
|
||||
return 1;
|
||||
}
|
||||
static int LoadBanner( T* p, lua_State *L )
|
||||
|
||||
Reference in New Issue
Block a user