From b7a5d2ccb809b6fa5d0492a1b5e268f8f21a290b Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 11 Aug 2025 20:10:54 +0200 Subject: [PATCH] fix(specctra-core): Rotate components placed on back by 180 degrees --- crates/specctra-core/src/structure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/specctra-core/src/structure.rs b/crates/specctra-core/src/structure.rs index 102ee4b..89de802 100644 --- a/crates/specctra-core/src/structure.rs +++ b/crates/specctra-core/src/structure.rs @@ -239,7 +239,7 @@ impl Place { pub fn point_with_rotation(&self) -> PointWithRotation { PointWithRotation { pos: (self.x, self.y).into(), - rot: self.rotation, + rot: self.rotation + (self.side == "back").then_some(180.0).unwrap_or(0.0), } } }