Merge pull request #3230 from pojienie/fix-hook-problem-with-brush-tool

fix hook problem with vector brush tool
This commit is contained in:
Rodney 2020-04-13 13:55:00 -05:00 committed by GitHub
commit ea71a3e51c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -701,7 +701,7 @@ static void Smooth(std::vector<TThickPoint> &points, int radius) {
if (points.size() >= 3) {
std::vector<TThickPoint> pts;
CatmullRomInterpolate(points[0], points[0], points[1], points[2], 10, pts);
std::vector<TThickPoint>::iterator it = points.begin();
std::vector<TThickPoint>::iterator it = points.begin() + 1;
points.insert(it, pts.begin(), pts.end());
pts.clear();