From ba9f36adb2ca54999cc10a7b30923695f446910b Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Sat, 22 Aug 2026 17:18:30 +0300 Subject: [PATCH] Align point property layout --- src/scene/cache/properties.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scene/cache/properties.rs b/src/scene/cache/properties.rs index 66de0882f..6076b7579 100644 --- a/src/scene/cache/properties.rs +++ b/src/scene/cache/properties.rs @@ -91,6 +91,15 @@ pub fn general_section(entity: &EntityType) -> PropSection { ], }; + if matches!(entity, EntityType::Point(_)) { + section.props.retain(|prop| prop.field != "handle"); + let hyperlink = section.props.iter().position(|prop| prop.field == "hyperlink"); + let transparency = section.props.iter().position(|prop| prop.field == "transparency"); + if let (Some(hyperlink), Some(transparency)) = (hyperlink, transparency) { + section.props.swap(hyperlink, transparency); + } + } + // Thickness (DXF 39) is a General-group property, but only the entity // types that carry an extrusion thickness expose it (line, circle, arc, // polyline, text, 2D solid, …). Show it right after Hyperlink for those.