mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-28 16:20:50 +00:00
Minor change in IntertwineAsLines::joinStrokes()
This commit is contained in:
parent
430c7384e5
commit
934c3d45f7
@ -112,11 +112,16 @@ public:
|
||||
(AlgoPixel)&addPointsWithoutDuplicatingLastOne);
|
||||
}
|
||||
|
||||
for (int c=0; c<m_pts.size(); ++c) {
|
||||
if (c == 0 && loop->getController()->isFreehand())
|
||||
continue;
|
||||
// Don't draw the first point in freehand tools (this is to
|
||||
// avoid painting above the last pixel of a freehand stroke,
|
||||
// when we use Shift+click in the Pencil tool to continue the
|
||||
// old stroke).
|
||||
// TODO useful only in the case when brush size = 1px
|
||||
const int start = (loop->getController()->isFreehand() ? 1: 0);
|
||||
|
||||
for (int c=start; c<m_pts.size(); ++c)
|
||||
doPointshapePoint(m_pts[c].x, m_pts[c].y, loop);
|
||||
}
|
||||
|
||||
ASSERT(!m_lastPointPrinted.empty());
|
||||
m_lastPointPrinted[0] = m_pts[m_pts.size()-1];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user