Fixing bug. When export a piece invisible internal path should not be included.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-02-13 18:22:38 +02:00
parent 1b60d5d5cf
commit 1199adf6e4

View File

@ -69,7 +69,7 @@ QVector<VLayoutPiecePath> ConvertInternalPaths(const VPiece &piece, const VConta
for (int i = 0; i < pathsId.size(); ++i) for (int i = 0; i < pathsId.size(); ++i)
{ {
const VPiecePath path = pattern->GetPiecePath(pathsId.at(i)); const VPiecePath path = pattern->GetPiecePath(pathsId.at(i));
if (path.GetType() == PiecePathType::InternalPath) if (path.GetType() == PiecePathType::InternalPath && path.IsVisible(pattern->DataVariables()))
{ {
paths.append(VLayoutPiecePath(path.PathPoints(pattern), path.IsCutPath(), path.GetPenType())); paths.append(VLayoutPiecePath(path.PathPoints(pattern), path.IsCutPath(), path.GetPenType()));
} }