mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Minor change in IntertwineAsLines::joinStrokes()
This commit is contained in:
parent
430c7384e5
commit
934c3d45f7
@ -112,11 +112,16 @@ public:
|
|||||||
(AlgoPixel)&addPointsWithoutDuplicatingLastOne);
|
(AlgoPixel)&addPointsWithoutDuplicatingLastOne);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int c=0; c<m_pts.size(); ++c) {
|
// Don't draw the first point in freehand tools (this is to
|
||||||
if (c == 0 && loop->getController()->isFreehand())
|
// avoid painting above the last pixel of a freehand stroke,
|
||||||
continue;
|
// 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);
|
doPointshapePoint(m_pts[c].x, m_pts[c].y, loop);
|
||||||
}
|
|
||||||
ASSERT(!m_lastPointPrinted.empty());
|
ASSERT(!m_lastPointPrinted.empty());
|
||||||
m_lastPointPrinted[0] = m_pts[m_pts.size()-1];
|
m_lastPointPrinted[0] = m_pts[m_pts.size()-1];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user