shaise / FreeCAD_SheetMetal

A simple sheet metal workbench for FreeCAD
http://theseger.com/projects/2015/06/sheet-metal-addon-for-freecad/
GNU Lesser General Public License v2.1
190 stars 55 forks source link

Translation on enumeration breaks Base Shape #315

Closed hasecilu closed 5 months ago

hasecilu commented 5 months ago

Can't assign directly, use intermediate.

14:22:52  Traceback (most recent call last):
14:22:52    File "/home/uli/.local/share/FreeCAD/Mod/FreeCAD_SheetMetal/./SheetMetalBaseShapeCmd.py", line 84, in typeChanged
14:22:52      self.spinValChanged()
14:22:52    File "/home/uli/.local/share/FreeCAD/Mod/FreeCAD_SheetMetal/./SheetMetalBaseShapeCmd.py", line 80, in spinValChanged
14:22:52      self.updateObj()
14:22:52    File "/home/uli/.local/share/FreeCAD/Mod/FreeCAD_SheetMetal/./SheetMetalBaseShapeCmd.py", line 98, in updateObj
14:22:52      self.obj.shapeType = self.form.shapeType.currentText()
14:22:52      ^^^^^^^^^^^^^^^^^^
14:22:52  ValueError: {'sclassname': 'N4Base10ValueErrorE', 'sErrMsg': "'Tina' is not part of the enumeration in Unnamed#BaseShape.shapeType", 'sfile': '/home/uli/git/github/FreeCAD/src/App/PropertyStandard.cpp', 'iline': 464, 'sfunction': 'virtual void App::PropertyEnumeration::setPyObject(PyObject*)', 'swhat': "'Tina' is not part of the enumeration in Unnamed#BaseShape.shapeType", 'btranslatable': False, 'breported': False}