From 1086ad18efb61d8846a9b0f19242d4dbb4e1250e Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 22 Apr 2024 15:38:16 +0200 Subject: [PATCH] arch - fixed stupid mistake in movewithhost --- src/Mod/Arch/ArchBuildingPart.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Arch/ArchBuildingPart.py b/src/Mod/Arch/ArchBuildingPart.py index 109c089c70..0e85ab17e7 100644 --- a/src/Mod/Arch/ArchBuildingPart.py +++ b/src/Mod/Arch/ArchBuildingPart.py @@ -438,12 +438,12 @@ class BuildingPart(ArchIFC.IfcProduct): obj.ViewObject.Proxy.onChanged(obj.ViewObject,"AutoGroupBox") def getMovableChildren(self, obj): - "recursively get movable children" + "recursively get movable children" - result = [] - for child in obj.Group: + result = [] + for child in obj.Group: if isinstance(child, "App::DocumentObjectGroup"): - result.extend(getMovableChildren(child) + result.extend(getMovableChildren(child)) if not hasattr(child,"MoveWithHost") or child.MoveWithHost: if hasattr(child,"Placement"): result.append(child)