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

Method hasInputConnected

Engine/Node.cpp:5435–5453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5433}
5434
5435bool
5436Node::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
5455bool
5456Node::hasMandatoryInputDisconnected() const

Callers 1

checkForHintsMethod · 0.80

Calls 2

lockMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected