Skip to content

Commit

Permalink
Merge pull request #4529 from mtreinik/master
Browse files Browse the repository at this point in the history
#3501 3d mol files appear as 2D in Miew
  • Loading branch information
NataliaLoginova authored Apr 25, 2024
2 parents 7ebd829 + dd46221 commit 0dc44a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ketcher-core/src/domain/serializers/ket/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ const rotateCoordAxisBy180Degrees = (position: Vec2, axis: Axises): Vec2 => {
const rotatedPosition = {
x: position.x,
y: position.y,
z: position.z,
};

rotatedPosition[axis] = -rotatedPosition[axis];

return new Vec2(rotatedPosition.x, rotatedPosition.y);
return new Vec2(rotatedPosition.x, rotatedPosition.y, rotatedPosition.z);
};

/**
Expand Down

0 comments on commit 0dc44a1

Please sign in to comment.