| 192 | } |
| 193 | |
| 194 | NodePtr |
| 195 | Node::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 | |
| 220 | NodePtr |
| 221 | Node::getGuiInput(int index) const |
nothing calls this directly
no test coverage detected