Piece Node point can't be reversed.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-04 16:25:01 +02:00
parent 1dd86e66fb
commit a378922bf6
2 changed files with 10 additions and 2 deletions

View file

@ -92,5 +92,8 @@ bool VPieceNode::GetReverse() const
//---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetReverse(bool reverse)
{
d->reverse = reverse;
if (d->typeTool != Tool::NodePoint)
{
d->reverse = reverse;
}
}

View file

@ -49,7 +49,12 @@ public:
: id(id),
typeTool(typeTool),
reverse(reverse)
{}
{
if (typeTool == Tool::NodePoint)
{
reverse = false;
}
}
VPieceNodeData (const VPieceNodeData& node)
: QSharedData(node),