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.
This commit is contained in:
Furgo
2026-02-02 15:56:08 +01:00
committed by GitHub
parent 0b7da82433
commit 36c0eaf44b

View File

@@ -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"