kicad-3d-models-in-freecad
kicad-3d-models-in-freecad copied to clipboard
remove duplicated function multiFuseObjs_wColors
It looks like multiFuseObjs_wColors
is duplicated at https://github.com/easyw/kicad-3d-models-in-freecad/blob/f2fe1731ecc88cb44da38f14bf6a1172e1a3d959/cadquery/FCAD_script_generator/_tools/cq_cad_tools.py#L260
Is there any reason why this PR was not merged? It seems quite a good idea to fix a duplicate function in the file.
The endind of the two function is different.
I think only René @poeschlr can tell what is the intention here and remove duplicate things.
# Remove the fusion itself
- fusedObj = App.ActiveDocument.ActiveObject
- SimpleCopy_wColors(fusedObj)
- FreeCAD.ActiveDocument.removeObject(fusedObj.Name)
- fused_obj = App.ActiveDocument.ActiveObject
+ App.getDocument(docName).removeObject("Fusion")
return fused_obj
ping @poeschlr