KeithSloan / GDML

FreeCAD GDML Workbench - AddonManager Installable
Other
49 stars 16 forks source link

BoxCommand failes #36

Closed stephanlachnit closed 3 years ago

stephanlachnit commented 3 years ago

When I create a new file (with the GDML workbench active), and then try to add a Box to worldVOL, this happens:

Running the Python command 'BoxCommand' failed:
Traceback (most recent call last):
  File "/home/stephan/.FreeCAD/Mod/GDML/freecad/gdml/GDMLCommands.py", line 159, in Activated
    GDMLBox(obj,10.0,10.0,10.0,"mm",material)

__init__() missing 1 required positional argument: 'colour'

The part will be created, but the "Box" in the part is greyed out and not shown. It also doesn't have the properties of the GDMLBox like from the world. I'm using freecad 0.19~pre1+git20210207.a3fb41502b+dfsg-1 on Debian Sid.

KeithSloan commented 3 years ago

Thanks for reporting - Bug was introduced when adding support for setting colour from GDML import. Sorry about that - Should now be fixed

stephanlachnit commented 3 years ago

Jup works, thanks for the quick fix!