forked from 1b-agent/opencadstudio-upstream
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:
1 parent
2ee1c8e196
commit
3ec7bf7065
2 files changed
+2
-47
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user