Fix missing arrow type when follow a grainline.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-01-02 21:36:51 +02:00
parent b1ef2a0f7a
commit b66f516a74

View File

@ -620,12 +620,12 @@ void VPosition::FollowGrainline()
const qreal angle = detailGrainline.angleTo(FabricGrainline()); const qreal angle = detailGrainline.angleTo(FabricGrainline());
if (detail.GrainlineArrowType() == ArrowType::atFront) if (detail.GrainlineArrowType() == ArrowType::atBoth || detail.GrainlineArrowType() == ArrowType::atFront)
{ {
RotateOnAngle(angle); RotateOnAngle(angle);
} }
if (detail.GrainlineArrowType() == ArrowType::atRear) if (detail.GrainlineArrowType() == ArrowType::atBoth || detail.GrainlineArrowType() == ArrowType::atRear)
{ {
RotateOnAngle(angle+180); RotateOnAngle(angle+180);
} }