From 36c0eaf44b472ee8b6b6b02764cb3c1ac44a7bb5 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Mon, 2 Feb 2026 15:56:08 +0100 Subject: [PATCH] BIM: Prevent incorrect assembly icon for baseless parametric walls (#27277) The icon logic in _ViewProviderWall.getIcon previously switched to the assembly icon for any wall without a Base that contained Additions. This caused an unexpected icon change when a wall was debased, as it still retains a parametric body defined by its Length property. Update the logic to only show the assembly icon if the wall has no Base, has Additions, and its Length is zero. This ensures that baseless walls driven by their own dimensions maintain the standard wall icon. --- src/Mod/BIM/ArchWall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/BIM/ArchWall.py b/src/Mod/BIM/ArchWall.py index d296858d7d..e51175da03 100644 --- a/src/Mod/BIM/ArchWall.py +++ b/src/Mod/BIM/ArchWall.py @@ -1810,7 +1810,9 @@ class _ViewProviderWall(ArchComponent.ViewProviderComponent): if hasattr(self, "Object"): if self.Object.CloneOf: return ":/icons/Arch_Wall_Clone.svg" - elif (not self.Object.Base) and self.Object.Additions: + elif (not self.Object.Base) and self.Object.Additions and not self.Object.Length.Value: + # The wall is an assembly: it is built from additions only, yet it is not + # strictly a baseless wall, since baseless walls are parametric. return ":/icons/Arch_Wall_Tree_Assembly.svg" return ":/icons/Arch_Wall_Tree.svg"