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

Method getInputNumberFromLabel

Engine/NodeInputs.cpp:385–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385int
386Node::getInputNumberFromLabel(const std::string& inputLabel) const
387{
388 assert(_imp->inputsInitialized);
389 QMutexLocker l(&_imp->inputsLabelsMutex);
390 for (U32 i = 0; i < _imp->inputLabels.size(); ++i) {
391 if (_imp->inputLabels[i] == inputLabel) {
392 return i;
393 }
394 }
395
396 return -1;
397}
398
399bool
400Node::isInputOnlyAlpha(int inputNb) const

Callers 3

restoreConnectionsMethod · 0.80
mouseReleaseEventMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected