Fix exporting full piece.

develop
Roman Telezhynskyi 2024-04-04 19:00:10 +03:00
parent b3e6365e92
commit ebf678888e
2 changed files with 3 additions and 3 deletions

View File

@ -2243,7 +2243,7 @@ auto VLayoutPiece::GetMainPathItem() const -> QGraphicsPathItem *
QPainterPath path;
// contour
QVector<VLayoutPoint> const points = GetMappedContourPoints();
QVector<VLayoutPoint> const points = GetMappedFullContourPoints();
path.moveTo(points.at(0));
for (qint32 i = 1; i < points.count(); ++i)

View File

@ -2525,8 +2525,8 @@ auto VToolSeamAllowance::IsGrainlinePositionValid() const -> bool
const VPiece detail = VAbstractTool::data.GetPiece(m_id);
QVector<QPointF> contourPoints;
detail.IsSeamAllowance() && not detail.IsSeamAllowanceBuiltIn()
? CastTo(detail.SeamAllowancePoints(getData()), contourPoints)
: CastTo(detail.MainPathPoints(getData()), contourPoints);
? CastTo(detail.FullSeamAllowancePoints(getData()), contourPoints)
: CastTo(detail.FullMainPathPoints(getData()), contourPoints);
return grainLine.IsPositionValid(contourPoints);
}