MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / hasInputConnected

Method hasInputConnected

Engine/NodeInputs.cpp:491–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491bool
492Node::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
512bool

Callers 1

checkForHintsMethod · 0.80

Calls 2

lockMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected