mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-17 17:42:51 +00:00
Fix regression crash using Dynamics (fix #4788)
Prior to this fix, Aseprite would crash when using Dynamics + Dithering by simply clicking on the canvas. The regression has been introduced in b7aa5d5 'Add Diagonal Symmetry'.
This commit is contained in:
parent
a43841f8b7
commit
e269cffc63
@ -1158,7 +1158,8 @@ public:
|
|||||||
void prepareForPointShape(ToolLoop* loop, bool firstPoint, int x, int y,
|
void prepareForPointShape(ToolLoop* loop, bool firstPoint, int x, int y,
|
||||||
doc::SymmetryIndex index) override {
|
doc::SymmetryIndex index) override {
|
||||||
m_isBoundsRotated = does_symmetry_rotate_image(index);
|
m_isBoundsRotated = does_symmetry_rotate_image(index);
|
||||||
m_brushImage = m_brush->getSymmetryImage(index);
|
m_brushImage = (m_brush->patternImage() ? m_brush->patternImage():
|
||||||
|
m_brush->getSymmetryImage(index));
|
||||||
m_brushMask = m_brush->getSymmetryMask(index);
|
m_brushMask = m_brush->getSymmetryMask(index);
|
||||||
m_patternAlign = m_brush->pattern();
|
m_patternAlign = m_brush->pattern();
|
||||||
if (m_patternAlign != BrushPattern::ALIGNED_TO_SRC) {
|
if (m_patternAlign != BrushPattern::ALIGNED_TO_SRC) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user