mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
check point count before tessellating bezier (#2506)
This commit is contained in:
@@ -1507,6 +1507,10 @@ impl Tessellator {
|
||||
stroke: Stroke,
|
||||
out: &mut Mesh,
|
||||
) {
|
||||
if points.len() < 2 {
|
||||
return;
|
||||
}
|
||||
|
||||
self.scratchpad_path.clear();
|
||||
if closed {
|
||||
self.scratchpad_path.add_line_loop(points);
|
||||
|
||||
Reference in New Issue
Block a user