Merge pull request #3230 from pojienie/fix-hook-problem-with-brush-tool
fix hook problem with vector brush tool
This commit is contained in:
commit
ea71a3e51c
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ static void Smooth(std::vector<TThickPoint> &points, int radius) {
|
||||||
if (points.size() >= 3) {
|
if (points.size() >= 3) {
|
||||||
std::vector<TThickPoint> pts;
|
std::vector<TThickPoint> pts;
|
||||||
CatmullRomInterpolate(points[0], points[0], points[1], points[2], 10, 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());
|
points.insert(it, pts.begin(), pts.end());
|
||||||
|
|
||||||
pts.clear();
|
pts.clear();
|
||||||
|
|
Loading…
Reference in a new issue