Skip to content

Commit

Permalink
#6022 Side chain attachment point shown in wrong place in Snake mode
Browse files Browse the repository at this point in the history
  • Loading branch information
uGokalp committed Dec 20, 2024
1 parent aa7b97e commit 54a6169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ketcher-core/src/domain/AttachmentPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54a6169

Please sign in to comment.