From ea71a3e51c46aff079cde25c0771d75852d8ae81 Mon Sep 17 00:00:00 2001 From: Rodney Date: Apr 13 2020 18:55:00 +0000 Subject: Merge pull request #3230 from pojienie/fix-hook-problem-with-brush-tool fix hook problem with vector brush tool --- diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cpp index ebe6771..7349416 100644 --- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp +++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp @@ -701,7 +701,7 @@ static void Smooth(std::vector &points, int radius) { if (points.size() >= 3) { std::vector pts; CatmullRomInterpolate(points[0], points[0], points[1], points[2], 10, pts); - std::vector::iterator it = points.begin(); + std::vector::iterator it = points.begin() + 1; points.insert(it, pts.begin(), pts.end()); pts.clear();