From 936b05b0a10d046c0f1fb7f9917df48a623fc48b Mon Sep 17 00:00:00 2001 From: Taehyub Kim Date: Fri, 16 Oct 2020 17:16:52 +0900 Subject: [PATCH] Fix the path broken when the radius option of StraightPath is used. This patch fix this. --- flare_skia/src/skr_actor_base_path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flare_skia/src/skr_actor_base_path.cpp b/flare_skia/src/skr_actor_base_path.cpp index f9557ea..d906168 100644 --- a/flare_skia/src/skr_actor_base_path.cpp +++ b/flare_skia/src/skr_actor_base_path.cpp @@ -86,7 +86,7 @@ void SkrActorBasePath::updatePath() { Vec2D translation, inPoint; Vec2D::scaleAndAdd(translation, pos, toNext, renderRadius); - Vec2D::scaleAndAdd(translation, pos, toNext, iarcConstant * renderRadius); + Vec2D::scaleAndAdd(inPoint, pos, toNext, iarcConstant * renderRadius); CubicPathPoint* newPoint = new CubicPathPoint(translation, inPoint, translation); cleanup.push_back(newPoint);