Skip to content

Commit

Permalink
Update readme to latest fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaise committed Dec 6, 2024
1 parent 37f75b3 commit 756a212
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ 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.6.01 06 Dec 2024: Add GUI to BaseBend command.
- Fix detection of basebend belonging to body or not.
- Update translations by [@hasecilu][hasecilu].
- Fix python compatibility by [@Syres916][Syres916].
- Extruded cutout fixes by [@sheetmetalman][sheetmetalman].
- Fix round relief apect ratio limitations.
* V0.6.00 03 Dec 2024: Code refactoring, Remove duplication, Add GUI to most functions.
* V0.5.10 25 Nov 2024: Extruded Cutout: add improvements and fixes by [@sheetmetalman][sheetmetalman].
- Update translations from CrowdIn by [@hasecilu][hasecilu].
Expand Down
9 changes: 6 additions & 3 deletions SheetMetalTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import os
import re
import FreeCAD
import Part
from SheetMetalLogger import SMLogger

translate = FreeCAD.Qt.translate
Expand Down Expand Up @@ -415,12 +416,14 @@ def smBelongToBody(item, body):
return True
return False

def smIsPartDesign(obj):
return obj.TypeId.startswith("PartDesign::")

def smIsSketchObject(obj):
return obj.TypeId.startswith("Sketcher::")

def smIsPartDesign(obj):
if smIsSketchObject(obj):
return isinstance(obj.getParent(), Part.BodyBase)
return obj.TypeId.startswith("PartDesign::")

def smIsOperationLegal(body, selobj):
# FreeCAD.Console.PrintLog(str(selobj) + " " + str(body) + " " + str(smBelongToBody(selobj, body)) + "\n")
if smIsPartDesign(selobj) and not smBelongToBody(selobj, body):
Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package format="1" xmlns="https://wiki.freecad.org/Package_Metadata">
<name>SheetMetal Workbench</name>
<description>A simple sheet metal tools workbench for FreeCAD.</description>
<version>0.6.00</version>
<date>2024-12-03</date>
<version>0.6.01</version>
<date>2024-12-06</date>
<maintainer email="shaise@gmail.com">Shai Seger</maintainer>
<license file="LICENSE">LGPL-2.1-or-later</license>
<url type="repository" branch="master">https://github.com/shaise/FreeCAD_SheetMetal</url>
Expand Down

0 comments on commit 756a212

Please sign in to comment.