- fixed bug in ModelNode_getChildWithFc function

pull/6/head
Michael Zillgith 11 years ago
parent ad090f707e
commit 811b8f4572

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

Loading…
Cancel
Save