From 40e71af920e175179826ff08588188bbbc42927e Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Wed, 11 Sep 2024 20:36:54 +0200 Subject: [PATCH] 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 --- src/Mod/BIM/bimcommands/BimSetup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/BIM/bimcommands/BimSetup.py b/src/Mod/BIM/bimcommands/BimSetup.py index ce6aee80f1..5a8692ef6e 100644 --- a/src/Mod/BIM/bimcommands/BimSetup.py +++ b/src/Mod/BIM/bimcommands/BimSetup.py @@ -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(