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) 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), : id(id),
typeTool(typeTool), typeTool(typeTool),
reverse(reverse) reverse(reverse)
{} {
if (typeTool == Tool::NodePoint)
{
reverse = false;
}
}
VPieceNodeData (const VPieceNodeData& node) VPieceNodeData (const VPieceNodeData& node)
: QSharedData(node), : QSharedData(node),