From 69ba0d2241ea055216e5061d28271e030787872d Mon Sep 17 00:00:00 2001 From: Billy Huddleston Date: Mon, 22 Sep 2025 12:42:40 -0400 Subject: [PATCH] CAM: Fix group dropdown showing individual letters by ensuring groups is a list - Add type check in PropertyCreate to wrap CustomPropertyGroups as a list if not already - Prevents dropdown from displaying each character of a string as a separate group option --- src/Mod/CAM/Path/Base/Gui/PropertyBag.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/CAM/Path/Base/Gui/PropertyBag.py b/src/Mod/CAM/Path/Base/Gui/PropertyBag.py index f25b11e03a..aae8097e91 100644 --- a/src/Mod/CAM/Path/Base/Gui/PropertyBag.py +++ b/src/Mod/CAM/Path/Base/Gui/PropertyBag.py @@ -128,7 +128,10 @@ class PropertyCreate(object): self.form = FreeCADGui.PySideUic.loadUi(":panels/PropertyCreate.ui") obj.Proxy.refreshCustomPropertyGroups() - for g in sorted(obj.CustomPropertyGroups): + groups = obj.CustomPropertyGroups + if not isinstance(groups, (list, tuple)): + groups = [groups] + for g in sorted(groups): self.form.propertyGroup.addItem(g) if grp: self.form.propertyGroup.setCurrentText(grp)