Fix glitches with 'on sprite crosshair' after modifying sprite areas

This commit is contained in:
David Capello 2016-09-23 10:22:30 -03:00
parent d4c4cb5f72
commit b75d87c5fc

View File

@ -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);
}