mirror of
https://gitlab.com/sheaf/metabrush.git
synced 2024-11-23 23:44:07 +00:00
fix bug in cubic Bézier subdivision
This commit is contained in:
parent
212ac4fded
commit
4788ab2efd
|
@ -161,7 +161,7 @@ subdivide c doc@( Document { zoomFactor } ) =
|
||||||
let
|
let
|
||||||
bez_start, bez_end :: Curve Open ( CachedStroke RealWorld ) ( PointData brushParams )
|
bez_start, bez_end :: Curve Open ( CachedStroke RealWorld ) ( PointData brushParams )
|
||||||
bez_start = Bezier3To q1 q2 ( NextPoint subdiv ) ( invalidateCache dat )
|
bez_start = Bezier3To q1 q2 ( NextPoint subdiv ) ( invalidateCache dat )
|
||||||
bez_end = Bezier3To r1 r2 ( NextPoint sp2 ) ( invalidateCache dat )
|
bez_end = Bezier3To r1 r2 ( NextPoint sp3 ) ( invalidateCache dat )
|
||||||
put ( Just txt )
|
put ( Just txt )
|
||||||
pure ( bez_start :<| bez_end :<| Empty )
|
pure ( bez_start :<| bez_end :<| Empty )
|
||||||
else pure $ Seq.singleton bez3
|
else pure $ Seq.singleton bez3
|
||||||
|
|
Loading…
Reference in a new issue