Skip to content

Commit

Permalink
BIM: fix BIM_Setup license issue
Browse files Browse the repository at this point in the history
FreeCAD currently has 19 standard licenses. BIM_Setup could only handle the first 10.

Forum post:
https://forum.freecad.org/viewtopic.php?p=781578#p781535
  • Loading branch information
Roy-043 authored and yorikvanhavre committed Sep 12, 2024
1 parent 5785cb5 commit 40e71af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/BIM/bimcommands/BimSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,10 @@ def setPreset(self, preset=None):
lic = FreeCAD.ParamGet(
"User parameter:BaseApp/Preferences/Document"
).GetInt("prefLicenseType", 0)
lic = [0, 1, 2, 1, 3, 4, 1, 0, 0, 0][
lic = [0,
1, 2, 1, 3, 4, 1,
1, 2, 1, 3, 4, 1,
0, 0, 0, 0, 0, 0][
lic
] # less choices in our simplified dialog
newdoc = FreeCAD.ParamGet(
Expand Down

0 comments on commit 40e71af

Please sign in to comment.