fix(linetype): preserve patterns for basic curve entities

This commit is contained in:
gianlucafiore committed 2026-08-10 15:10:42 -03:00
1 parent 1cd1b89250
commit d22d0a272c
1 file changed
+9 -3
+9 -3
View File
@@ -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])