mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Fix onTiledModeChange to make it work as before of the introduction of the tiledModeHelper component
This commit is contained in:
parent
b40723e50a
commit
3881589301
@ -2207,6 +2207,8 @@ void Editor::onTiledModeChange()
|
|||||||
{
|
{
|
||||||
ASSERT(m_sprite);
|
ASSERT(m_sprite);
|
||||||
|
|
||||||
|
m_tiledModeHelper.mode(m_docPref.tiled.mode());
|
||||||
|
|
||||||
// Get the sprite point in the middle of the editor, so we can
|
// Get the sprite point in the middle of the editor, so we can
|
||||||
// restore this with the new tiled mode in the main tile.
|
// restore this with the new tiled mode in the main tile.
|
||||||
View* view = View::getView(this);
|
View* view = View::getView(this);
|
||||||
@ -2223,8 +2225,6 @@ void Editor::onTiledModeChange()
|
|||||||
screenPos = editorToScreen(spritePos);
|
screenPos = editorToScreen(spritePos);
|
||||||
|
|
||||||
centerInSpritePoint(spritePos);
|
centerInSpritePoint(spritePos);
|
||||||
|
|
||||||
m_tiledModeHelper.mode(m_docPref.tiled.mode());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Editor::onShowExtrasChange()
|
void Editor::onShowExtrasChange()
|
||||||
|
Loading…
Reference in New Issue
Block a user