| 489 | } |
| 490 | |
| 491 | bool |
| 492 | Node::hasInputConnected() const |
| 493 | { |
| 494 | assert(_imp->inputsInitialized); |
| 495 | |
| 496 | NodePtr parent = _imp->multiInstanceParent.lock(); |
| 497 | if (parent) { |
| 498 | return parent->hasInputConnected(); |
| 499 | } |
| 500 | QMutexLocker l(&_imp->inputsMutex); |
| 501 | for (U32 i = 0; i < _imp->inputs.size(); ++i) { |
| 502 | if ( _imp->inputs[i].lock() ) { |
| 503 | return true; |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | |
| 508 | return false; |
| 509 | } |
| 510 | |
| 511 | |
| 512 | bool |
no test coverage detected