| 5433 | } |
| 5434 | |
| 5435 | bool |
| 5436 | Node::hasInputConnected() const |
| 5437 | { |
| 5438 | assert(_imp->inputsInitialized); |
| 5439 | |
| 5440 | NodePtr parent = _imp->multiInstanceParent.lock(); |
| 5441 | if (parent) { |
| 5442 | return parent->hasInputConnected(); |
| 5443 | } |
| 5444 | QMutexLocker l(&_imp->inputsMutex); |
| 5445 | for (U32 i = 0; i < _imp->inputs.size(); ++i) { |
| 5446 | if ( _imp->inputs[i].lock() ) { |
| 5447 | return true; |
| 5448 | } |
| 5449 | } |
| 5450 | |
| 5451 | |
| 5452 | return false; |
| 5453 | } |
| 5454 | |
| 5455 | bool |
| 5456 | Node::hasMandatoryInputDisconnected() const |
no test coverage detected