fix(linetype): preserve patterns for basic curve entities
This commit is contained in:
parent
1cd1b89250
commit
d22d0a272c
1 changed files with 9 additions and 3 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue