| 224 | |
| 225 | |
| 226 | bool |
| 227 | NodeConnectionInteraction:: |
| 228 | nodePortIsEmpty(PortType portType, PortIndex portIndex) const |
| 229 | { |
| 230 | NodeState const & nodeState = _node->nodeState(); |
| 231 | |
| 232 | auto const & entries = nodeState.getEntries(portType); |
| 233 | |
| 234 | if (entries[portIndex].empty()) return true; |
| 235 | |
| 236 | const auto outPolicy = _node->nodeDataModel()->portOutConnectionPolicy(portIndex); |
| 237 | return ( portType == PortType::Out && outPolicy == NodeDataModel::ConnectionPolicy::Many); |
| 238 | } |
nothing calls this directly
no test coverage detected