mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Renamed Context::m_current_sprite to m_currentSprite.
This commit is contained in:
parent
77a54b7d34
commit
5d55358ffb
@ -28,7 +28,7 @@
|
||||
|
||||
Context::Context()
|
||||
{
|
||||
m_current_sprite = NULL;
|
||||
m_currentSprite = NULL;
|
||||
}
|
||||
|
||||
Context::~Context()
|
||||
@ -105,7 +105,7 @@ void Context::remove_sprite(Sprite* sprite)
|
||||
on_remove_sprite(sprite);
|
||||
|
||||
// the current sprite cannot be the removed sprite anymore
|
||||
if (m_current_sprite == sprite)
|
||||
if (m_currentSprite == sprite)
|
||||
set_current_sprite(NULL);
|
||||
}
|
||||
|
||||
@ -125,12 +125,12 @@ void Context::send_sprite_to_top(Sprite* sprite)
|
||||
|
||||
Sprite* Context::get_current_sprite() const
|
||||
{
|
||||
return m_current_sprite;
|
||||
return m_currentSprite;
|
||||
}
|
||||
|
||||
void Context::set_current_sprite(Sprite* sprite)
|
||||
{
|
||||
m_current_sprite = sprite;
|
||||
m_currentSprite = sprite;
|
||||
|
||||
on_set_current_sprite(sprite);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ class Context
|
||||
SpriteList m_sprites;
|
||||
|
||||
// Current selected sprite to operate.
|
||||
Sprite* m_current_sprite;
|
||||
Sprite* m_currentSprite;
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user