BIM: fix BIM_Setup license issue

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
This commit is contained in:
Roy-043
2024-09-11 20:36:54 +02:00
committed by Yorik van Havre
parent 5785cb589b
commit 40e71af920

View File

@@ -528,7 +528,10 @@ class BIM_Setup:
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(