diff --git a/ExtrudedCutout.py b/ExtrudedCutout.py index 585cdf6..8e948bb 100644 --- a/ExtrudedCutout.py +++ b/ExtrudedCutout.py @@ -38,14 +38,6 @@ def _addProperties(self, obj): "ExtrudedCutoutImprovements" ) - SheetMetalTools.smAddBoolProperty( - obj, - "ImproveCut", - translate("App::Property", "Improve cut geometry if it enters the cutting zone. Only select true if the cut needs fix, 'cause it can be slow"), - False, - "ExtrudedCutoutImprovements" - ) - SheetMetalTools.smAddProperty( obj, "App::PropertyIntegerConstraint", @@ -55,6 +47,14 @@ def _addProperties(self, obj): "ExtrudedCutoutImprovements", ) + SheetMetalTools.smAddBoolProperty( + obj, + "ImproveCut", + translate("App::Property", "Improve cut geometry if it enters the cutting zone. Only select true if the cut needs fix, 'cause it can be slow"), + False, + "ExtrudedCutoutImprovements" + ) + def onChanged(self, fp, prop): '''Respond to property changes''' # Show or hide improvement of the cut: @@ -369,16 +369,6 @@ def __setstate__(self, state): '''Restore the object from its state''' self.loads(state) - def dumps(self): - return None - - def loads(self, state): - if state is not None: - import FreeCAD - - doc = FreeCAD.ActiveDocument # crap - self.Object = doc.getObject(state["ObjectName"]) - # dumps and loads replace __getstate__ and __setstate__ post v. 0.21.2 def dumps(self): return None diff --git a/README.md b/README.md index 424e542..3c167bd 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ Starting from FreeCAD 0.17 it can be installed via the [Addon Manager](https://g * FreeCAD Forum announcement/discussion [thread](https://forum.freecadweb.org/viewtopic.php?f=3&t=60818) #### Release notes: +* V0.5.07 22 Nov 2024: Extruded Cutout: add improvements by [@sheetmetalman][sheetmetalman]. * V0.5.06 17 Nov 2024: Extruded Cutout: support far sketches by [@sheetmetalman][sheetmetalman]. - Add bug report template for GitHub. - Fix bug when unfolding sheet with material definition. diff --git a/package.xml b/package.xml index be3e26e..cbf92ee 100644 --- a/package.xml +++ b/package.xml @@ -2,8 +2,8 @@ SheetMetal Workbench A simple sheet metal tools workbench for FreeCAD. - 0.5.06 - 2024-11-17 + 0.5.07 + 2024-11-22 Shai Seger LGPL-2.1-or-later https://github.com/shaise/FreeCAD_SheetMetal