| 165 | } // applyNodeRedirectionsDownstream |
| 166 | |
| 167 | void |
| 168 | Node::getOutputsWithGroupRedirection(NodesList& outputs) const |
| 169 | { |
| 170 | NodesList redirections; |
| 171 | NodePtr thisShared = std::const_pointer_cast<Node>( shared_from_this() ); |
| 172 | |
| 173 | applyNodeRedirectionsDownstream(0, thisShared, false, redirections); |
| 174 | if ( !redirections.empty() ) { |
| 175 | outputs.insert( outputs.begin(), redirections.begin(), redirections.end() ); |
| 176 | } else { |
| 177 | QMutexLocker l(&_imp->outputsMutex); |
| 178 | for (NodesWList::const_iterator it = _imp->outputs.begin(); it != _imp->outputs.end(); ++it) { |
| 179 | NodePtr output = it->lock(); |
| 180 | if (output) { |
| 181 | outputs.push_back(output); |
| 182 | } |
| 183 | } |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | |
| 188 | NodePtr |
no test coverage detected