Skip to content

Commit

Permalink
Fixes FreeCAD#15637 Attributes are ignored when using ToolBitFactory(…
Browse files Browse the repository at this point in the history
…) CreateFromAttrs(self, attrs, name="ToolBit", path=None)
  • Loading branch information
spanner888 authored and sliptonic committed Aug 12, 2024
1 parent 38547bf commit 58729b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/CAM/Path/Tool/Bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ def CreateFromAttrs(self, attrs, name="ToolBit", path=None):
params = attrs["parameter"]
for prop in params:
PathUtil.setProperty(obj, prop, params[prop])
attributes = attrs["attribute"]
for att in attributes:
PathUtil.setProperty(obj, att, attributes[att])
obj.Proxy._updateBitShape(obj)
obj.Proxy.unloadBitBody(obj)
return obj
Expand Down

0 comments on commit 58729b3

Please sign in to comment.