| 1327 | } |
| 1328 | |
| 1329 | bool NodeBase::Parameter::matchesConnection(const ValueTree& c) const |
| 1330 | { |
| 1331 | if (c.hasType(PropertyIds::Node)) |
| 1332 | { |
| 1333 | auto isParent = parent->getValueTree() == c; |
| 1334 | auto isParentOfParent = parent->getValueTree().isAChildOf(c); |
| 1335 | |
| 1336 | return isParent || isParentOfParent; |
| 1337 | } |
| 1338 | |
| 1339 | auto matchesNode = c[PropertyIds::NodeId].toString() == parent->getId(); |
| 1340 | auto matchesParameter = c[PropertyIds::ParameterId].toString() == getId(); |
| 1341 | return matchesNode && matchesParameter; |
| 1342 | } |
| 1343 | |
| 1344 | juce::Array<NodeBase::Parameter*> NodeBase::Parameter::getConnectedMacroParameters() const |
| 1345 | { |
no test coverage detected