mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Fix glitches with 'on sprite crosshair' after modifying sprite areas
This commit is contained in:
parent
d4c4cb5f72
commit
b75d87c5fc
@ -242,6 +242,13 @@ public:
|
||||
}
|
||||
|
||||
void updateDirtyArea() override {
|
||||
// This is necessary here so the "on sprite crosshair" is hidden,
|
||||
// we update screen pixels with the new sprite, and then we show
|
||||
// the crosshair saving the updated pixels. It fixes problems with
|
||||
// filled shape tools when we release the button, or paint-bucket
|
||||
// when we press the button.
|
||||
HideBrushPreview hide(m_editor->brushPreview());
|
||||
|
||||
m_document->notifySpritePixelsModified(
|
||||
m_sprite, m_dirtyArea, m_frame);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user