refactor: deduplicate entity type name mapping

Make scene::properties::entity_type_name the single source of truth.
entity_type_label in helpers.rs now delegates to it instead of
maintaining a separate match list.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Sonnet 4.6 committed 2026-04-24 01:44:33 +03:00
1 parent 2ee1c8e196
commit 3ec7bf7065
2 files changed
+2 -47

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ pub fn fallback_properties(_handle: Handle, entity: &EntityType) -> PropSection
}
}
fn entity_type_name(e: &EntityType) -> &'static str {
pub fn entity_type_name(e: &EntityType) -> &'static str {
match e {
EntityType::Point(_) => "Point",
EntityType::Line(_) => "Line",