From 54a6169df029439926b0b99126089d22f792aaba Mon Sep 17 00:00:00 2001 From: Umur Gokalp Date: Fri, 20 Dec 2024 12:58:08 +0300 Subject: [PATCH] #6022 Side chain attachment point shown in wrong place in Snake mode --- packages/ketcher-core/src/domain/AttachmentPoint.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ketcher-core/src/domain/AttachmentPoint.ts b/packages/ketcher-core/src/domain/AttachmentPoint.ts index b8b5d04c02..da2ee0c736 100644 --- a/packages/ketcher-core/src/domain/AttachmentPoint.ts +++ b/packages/ketcher-core/src/domain/AttachmentPoint.ts @@ -249,7 +249,9 @@ export class AttachmentPoint { this.isSnake && !polymerBond?.renderer?.isMonomersOnSameHorizontalLine() ) { - angleRadians = isAttachmentpointR1 ? 0 : Math.PI; + angleRadians = isAttachmentpointR1 + ? this.rotateToAngle(polymerBond, flip) + : Math.PI; angleDegrees = Vec2.radiansToDegrees(angleRadians); } else { angleRadians = this.rotateToAngle(polymerBond, flip);