Let sprites disable the odd dimension warning.
This commit is contained in:
@@ -116,6 +116,11 @@ void Sprite::LoadFromNode( const XNode* pNode )
|
|||||||
if( !sPath.empty() && !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
|
if( !sPath.empty() && !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
|
||||||
ActorUtil::GetAttrPath( pNode, "Texture", 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() )
|
if( !sPath.empty() )
|
||||||
{
|
{
|
||||||
// Load the texture
|
// Load the texture
|
||||||
@@ -207,6 +212,8 @@ void Sprite::LoadFromNode( const XNode* pNode )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( bDisableDimensionWarning )
|
||||||
|
TEXTUREMAN->EnableOddDimensionWarning();
|
||||||
|
|
||||||
Actor::LoadFromNode( pNode );
|
Actor::LoadFromNode( pNode );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user