From d22d0a272c08ef5ae77cb1321cdef76193efbf36 Mon Sep 17 00:00:00 2001 From: gianlucafiore Date: Mon, 10 Aug 2026 15:10:42 -0300 Subject: [PATCH] fix(linetype): preserve patterns for basic curve entities --- src/scene/convert/tessellate.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/scene/convert/tessellate.rs b/src/scene/convert/tessellate.rs index 9c523b8f2..3c3d3f576 100644 --- a/src/scene/convert/tessellate.rs +++ b/src/scene/convert/tessellate.rs @@ -1113,10 +1113,16 @@ pub fn tessellate( } else { color }; - // Circles use the Lines path for large-coordinate precision, but they - // must still preserve the entity's resolved linetype pattern. + // Basic curve entities use the Lines path for large-coordinate precision, + // but they must still preserve the entity's resolved linetype pattern. let (edge_pattern_length, edge_pattern) = - if matches!(entity, EntityType::Circle(_)) { + if matches!( + entity, + EntityType::Line(_) + | EntityType::Circle(_) + | EntityType::Arc(_) + | EntityType::Ellipse(_) + ) { (pattern_length, pattern) } else { (0.0, [0.0; 8])