mirror of https://github.com/libAthena/athena.git
* Remove updateTexture in SpritePart
This commit is contained in:
parent
ed9b7176a4
commit
9c64071bc0
|
@ -39,7 +39,6 @@ public:
|
||||||
|
|
||||||
void setRoot(Sprite* root);
|
void setRoot(Sprite* root);
|
||||||
private:
|
private:
|
||||||
void updateTexture();
|
|
||||||
Sprite* m_root;
|
Sprite* m_root;
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
bool m_hasCollision;
|
bool m_hasCollision;
|
||||||
|
|
|
@ -96,10 +96,7 @@ void SpritePart::setFrames(std::vector<SpriteFrame*> frames)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_currentFrame)
|
if (!m_currentFrame)
|
||||||
{
|
|
||||||
m_currentFrame = frames[0];
|
m_currentFrame = frames[0];
|
||||||
updateTexture();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_frames = frames;
|
m_frames = frames;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue