fix non-lua quads
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
|
||||
REGISTER_ACTOR_CLASS( Quad )
|
||||
|
||||
Quad::Quad()
|
||||
{
|
||||
Load( TEXTUREMAN->GetDefaultTextureID() );
|
||||
}
|
||||
|
||||
void Quad::LoadFromNode( const XNode* pNode )
|
||||
{
|
||||
Load( TEXTUREMAN->GetDefaultTextureID() );
|
||||
|
||||
// HACK: Bypass Sprite's texture loading. Sprite should really derive from Quad.
|
||||
Actor::LoadFromNode( pNode );
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
class Quad : public Sprite
|
||||
{
|
||||
public:
|
||||
Quad();
|
||||
void LoadFromNode( const XNode* pNode );
|
||||
virtual Quad *Copy() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user