This commit is contained in:
sliptonic
2021-09-01 12:26:29 -05:00
parent 829c1d2a7e
commit ddc4c69e82
4 changed files with 20 additions and 21 deletions

View File

@@ -1432,7 +1432,9 @@ class ObjectProfile(PathAreaOp.ObjectOp):
# Method to add temporary debug object
def _addDebugObject(self, objName, objShape):
if self.isDebug:
newDocObj = FreeCAD.ActiveDocument.addObject("Part::Feature", "tmp_" + objName)
newDocObj = FreeCAD.ActiveDocument.addObject(
"Part::Feature", "tmp_" + objName
)
newDocObj.Shape = objShape
newDocObj.purgeTouched()
self.tmpGrp.addObject(newDocObj)