CAM: Fix: ShapeType not displayed correctly in property editor
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user