forked from 1b-agent/opencadstudio-upstream
Hover an object-mode Horizontal/Vertical glyph without endpoint markers
The reference highlights only the object when its Horizontal/Vertical bar is hovered; the extra cross markers at the line's ends were ours alone. Point-mode (2Points) relations keep marking their two points. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
a7ab5314f2
commit
b24d04d620
1 file changed
-19
@@ -1170,25 +1170,6 @@ pub(crate) fn constraint_hover_points(
|
||||
}
|
||||
}
|
||||
|
||||
if matches!(
|
||||
constraint.kind,
|
||||
ConstraintKind::Horizontal | ConstraintKind::Vertical
|
||||
) {
|
||||
for reference in &constraint.refs {
|
||||
let Some(entity) = document.get_entity(reference.entity) else {
|
||||
continue;
|
||||
};
|
||||
if let Some(endpoints) = constraint_segment_endpoints(document, *reference) {
|
||||
for point in endpoints {
|
||||
push_unique(&mut points, point);
|
||||
}
|
||||
} else if matches!(entity, acadrust::EntityType::Line(_)) {
|
||||
for point in super::dimension_assoc::source_points(entity) {
|
||||
push_unique(&mut points, point);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if matches!(
|
||||
constraint.kind,
|
||||
|
||||
Reference in new issue
Block a user