Files
create/src/Mod
marcuspollio c55e1c3bba BIM: Prevent crash when removing a wall's base component (#24633)
* BIM: Prevent crash when removing a wall's base component

When a user selected a wall's base object in the Tree View and used the
`Arch_Remove` command, a traceback occurred due to an `AttributeError`.

The `removeComponents` function was incorrectly checking for the `.Base`
attribute on a list of subtractions (`s.Base`) instead of on the parent
host object (`h.Base`).

This commit corrects the reference to check against the parent object,
resolving the crash and allowing the component to be removed.

Fixes: https://github.com/FreeCAD/FreeCAD/issues/24532

Authored-by:  furgo16 <148809153+furgo16@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Furgo <148809153+furgo16@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-14 11:19:43 +02:00
..
2025-10-08 19:10:28 -05:00
2025-10-07 19:21:58 +02:00
2025-10-07 19:21:58 +02:00
2025-10-07 19:21:58 +02:00
2025-10-07 19:21:58 +02:00
2025-10-07 19:21:58 +02:00
2025-10-07 19:21:58 +02:00
2025-09-25 17:25:13 +02:00
2025-10-07 19:21:58 +02:00
2025-10-07 19:21:58 +02:00