Fixed issue "Not all length of curves visible".

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-24 20:35:19 +03:00
parent 9c0f5f2fa4
commit f7736d3bfd

View File

@ -68,6 +68,11 @@ VCurveVariable::~VCurveVariable()
//---------------------------------------------------------------------------------------------------------------------
bool VCurveVariable::Filter(quint32 id)
{
if (id == NULL_ID)
{
return false;
}
if (d->parentId != NULL_ID)//Do not check if value zero
{// Not all curves have parents. Only those who was created after cutting the parent curve.
return d->id == id || d->parentId == id;