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 Seven 2026-04-24 01:44:33 +03:00
commit 3ec7bf7065
2 changed files with 2 additions and 47 deletions

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",