From 2796296a24e7647c1509bafa0b02f5eb6c729ce0 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Sun, 19 Oct 2025 11:13:51 +0200 Subject: [PATCH] BIM: Fix widget value setting in ArchMaterial (#24710) ArchMaterial's view provider has a setTaskValue helper to set values of widgets inside a task panel. While specific to ArchMaterial, the real place where the helper is called is at BIM_Classification. It appears it's not a general but more like an ad-hoc API for a specific purpose and for a specific object. In any case, this fix allows widgets that expect a numerical value to have their value set. Before, their value was set as text, unexpectedly. --- src/Mod/BIM/ArchMaterial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/ArchMaterial.py b/src/Mod/BIM/ArchMaterial.py index 025656d4d6..e094d10622 100644 --- a/src/Mod/BIM/ArchMaterial.py +++ b/src/Mod/BIM/ArchMaterial.py @@ -471,7 +471,7 @@ class _ViewProviderArchMaterial: if hasattr(widget, "setText"): widget.setText(value) elif hasattr(widget, "setValue"): - widget.setText(value) + widget.setValue(value) def dumps(self): return None