- fixed bug in ModelNode_getChildWithFc function

This commit is contained in:
Michael Zillgith 2015-01-20 16:04:46 +01:00
parent ad090f707e
commit 811b8f4572

View file

@ -491,8 +491,20 @@ ModelNode_getChildWithFc(ModelNode* self, const char* name, FunctionalConstraint
}
}
else {
matchingNode = nextNode;
break;
if (nextNode->modelType == DataAttributeModelType) {
DataAttribute* da = (DataAttribute*) nextNode;
if (da->fc == fc) {
matchingNode = nextNode;
break;
}
}
else {
matchingNode = nextNode;
break;
}
}
}
}