Changes angle type allowed only for point nodes.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-19 18:52:47 +02:00
parent cc3d97a015
commit f60c710ee1

View File

@ -159,7 +159,10 @@ PieceNodeAngle VPieceNode::GetAngleType() const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetAngleType(PieceNodeAngle type) void VPieceNode::SetAngleType(PieceNodeAngle type)
{ {
if (d->m_typeTool == Tool::NodePoint)
{
d->m_angleType = type; d->m_angleType = type;
}
} }
// Friend functions // Friend functions