diff --git a/crates/epaint/src/shape.rs b/crates/epaint/src/shape.rs index de2717f55..fcca090e5 100644 --- a/crates/epaint/src/shape.rs +++ b/crates/epaint/src/shape.rs @@ -7,7 +7,7 @@ use crate::{ text::{FontId, Fonts, Galley}, Color32, Mesh, Stroke, TextureId, }; -use emath::{pos2, Align2, Pos2, Rangef, Rect, TSTransform, Vec2}; +use emath::{pos2, vec2, Align2, Pos2, Rangef, Rect, TSTransform, Vec2}; pub use crate::{CubicBezierShape, QuadraticBezierShape}; diff --git a/crates/epaint/src/shape_transform.rs b/crates/epaint/src/shape_transform.rs index e74a9ebdb..b360183d4 100644 --- a/crates/epaint/src/shape_transform.rs +++ b/crates/epaint/src/shape_transform.rs @@ -1,8 +1,8 @@ use std::sync::Arc; use crate::{ - color, CircleShape, Color32, ColorMode, CubicBezierShape, EllipseShape, Mesh, PathShape, - QuadraticBezierShape, RectShape, Shape, TextShape, + color, ArcPieShape, CircleShape, Color32, ColorMode, CubicBezierShape, EllipseShape, Mesh, + PathShape, QuadraticBezierShape, RectShape, Shape, TextShape, }; /// Remember to handle [`Color32::PLACEHOLDER`] specially! diff --git a/crates/epaint/src/tessellator.rs b/crates/epaint/src/tessellator.rs index e78e40aaa..edfbc6169 100644 --- a/crates/epaint/src/tessellator.rs +++ b/crates/epaint/src/tessellator.rs @@ -7,9 +7,9 @@ use crate::texture_atlas::PreparedDisc; use crate::{ - color, emath, stroke, CircleShape, ClippedPrimitive, ClippedShape, Color32, CubicBezierShape, - EllipseShape, Mesh, PathShape, Primitive, QuadraticBezierShape, RectShape, Rounding, Shape, - Stroke, TextShape, TextureId, Vertex, WHITE_UV, + color, emath, stroke, ArcPieShape, CircleShape, ClippedPrimitive, ClippedShape, Color32, + CubicBezierShape, EllipseShape, Mesh, PathShape, Primitive, QuadraticBezierShape, RectShape, + Rounding, Shape, Stroke, TextShape, TextureId, Vertex, WHITE_UV, }; use emath::{pos2, remap, vec2, NumExt, Pos2, Rect, Rot2, Vec2}; @@ -1519,7 +1519,8 @@ impl Tessellator { if closed { self.scratchpad_path .add_pie(center, radius, start_angle, end_angle); - self.scratchpad_path.fill(self.feathering, fill, out); + self.scratchpad_path + .fill(self.feathering, fill, &stroke, out); self.scratchpad_path .stroke_closed(self.feathering, &stroke, out); } else {