Polish automatic constraint integration

This commit is contained in:
Hakan Seven committed 2026-09-15 12:54:00 +03:00
1 parent c9eeb6f66e
commit f61174eaad
3 files changed
+20 -11

No files matched your search

+2 -4
View File
@@ -67,10 +67,8 @@ impl Default for AutoConstrainSettings {
fn default() -> Self {
Self {
priority: AutoConstraintKind::ALL.to_vec(),
// Equal remains available in the priority list, but the reference
// application does not enable it in a fresh profile. Enabling it
// by default adds a redundant relation between equal-length line
// segments (including adjacent polyline segments).
// Keep Equal available without creating redundant relations
// between equal-length segments by default.
enabled: AutoConstraintKind::ALL
.into_iter()
.filter(|kind| *kind != AutoConstraintKind::Equal)