forked from 1b-agent/opencadstudio-upstream
Merge pull request #730 from gianlucafiore/fix/ltscale-line-arc-ellipse
Fix linetype scaling for lines, arcs and ellipses
This commit is contained in:
1 file changed
+9
-3
@@ -1113,10 +1113,16 @@ pub fn tessellate(
|
|||||||
} else {
|
} else {
|
||||||
color
|
color
|
||||||
};
|
};
|
||||||
// Circles use the Lines path for large-coordinate precision, but they
|
// Basic curve entities use the Lines path for large-coordinate precision,
|
||||||
// must still preserve the entity's resolved linetype pattern.
|
// but they must still preserve the entity's resolved linetype pattern.
|
||||||
let (edge_pattern_length, edge_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)
|
(pattern_length, pattern)
|
||||||
} else {
|
} else {
|
||||||
(0.0, [0.0; 8])
|
(0.0, [0.0; 8])
|
||||||
|
|||||||
Reference in new issue
Block a user