- fixed bug in ModelNode_getChildWithFc function
This commit is contained in:
parent
ad090f707e
commit
811b8f4572
1 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue