CAM: Fix: ShapeType not displayed correctly in property editor

This commit is contained in:
Samuel Abels
2025-05-27 12:46:12 +02:00
parent 857d7269ee
commit 80bce9498f
2 changed files with 2 additions and 3 deletions

View File

@@ -179,8 +179,7 @@ class DetachedDocumentObject:
if prop_type == "App::PropertyEnumeration":
first_choice = self._property_enums[prop_name][0]
setattr(obj, prop_name, first_choice)
else:
setattr(obj, prop_name, prop_value)
setattr(obj, prop_name, prop_value)
except Exception as e:
Path.Log.error(

View File

@@ -439,7 +439,7 @@ class ToolBit(Asset, ABC):
# Only re-initialize properties from shape if not restoring from file
if self.obj.BitBody and self.obj.BitBody.Document != self.obj.Document:
Path.Log.debug(
f"onDocumeformat_valuentRestored: Re-initializing BitBody for {self.obj.Label} after copy"
f"onDocumentRestored: Re-initializing BitBody for {self.obj.Label} after copy"
)
self._update_visual_representation()