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

Method getInputInternal

Engine/NodeInputs.cpp:194–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194NodePtr
195Node::getInputInternal(bool useGuiInput,
196 bool useGroupRedirections,
197 int index) const
198{
199 NodePtr parent = _imp->multiInstanceParent.lock();
200
201 if (parent) {
202 return parent->getInput(index);
203 }
204 if (!_imp->inputsInitialized) {
205 qDebug() << "Node::getInput(): inputs not initialized";
206 }
207 QMutexLocker l(&_imp->inputsMutex);
208 if ( ( index >= (int)_imp->inputs.size() ) || (index < 0) ) {
209 return NodePtr();
210 }
211
212 NodePtr ret = useGuiInput ? _imp->guiInputs[index].lock() : _imp->inputs[index].lock();
213 if (ret && useGroupRedirections) {
214 ret = applyNodeRedirectionsUpstream(ret, useGuiInput);
215 }
216
217 return ret;
218}
219
220NodePtr
221Node::getGuiInput(int index) const

Callers

nothing calls this directly

Calls 4

lockMethod · 0.45
getInputMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected