From d5ed23a62cc08db0b95fbe53683b358f7edbbd3e Mon Sep 17 00:00:00 2001 From: alafr Date: Fri, 4 Mar 2022 18:39:51 +0100 Subject: [PATCH] Arch: fix BaseMirror property The code checked for the existance of the property and not if it's value was true. As a result, the structure base was always mirrored, even if the property was set to false. This commit fixes the issue. --- src/Mod/Arch/ArchStructure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index e7c59ead89..d27f7b1fcb 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -887,7 +887,7 @@ class _Structure(ArchComponent.Component): pl.rotate(FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(0, 0, 1), -obj.BaseRotation) if hasattr(obj, "BaseOffsetX") and hasattr(obj, "BaseOffsetY"): pl.translate(FreeCAD.Vector(obj.BaseOffsetX, obj.BaseOffsetY, 0)) - if hasattr(obj, "BaseMirror"): + if hasattr(obj, "BaseMirror") and obj.BaseMirror: pl.rotate(FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(0, 1, 0), 180) baseface.Placement = DraftGeomUtils.get_placement_perpendicular_to_wire(extrusion).multiply(pl) else: