| 301 | } |
| 302 | |
| 303 | bool |
| 304 | NodeCollection::hasNodeRendering() const |
| 305 | { |
| 306 | QMutexLocker k(&_imp->nodesMutex); |
| 307 | |
| 308 | for (NodesList::iterator it = _imp->nodes.begin(); it != _imp->nodes.end(); ++it) { |
| 309 | if ( (*it)->isOutputNode() ) { |
| 310 | NodeGroup* isGrp = (*it)->isEffectGroup(); |
| 311 | PrecompNode* isPrecomp = dynamic_cast<PrecompNode*>( (*it)->getEffectInstance().get() ); |
| 312 | if (isGrp) { |
| 313 | if ( isGrp->hasNodeRendering() ) { |
| 314 | return true; |
| 315 | } |
| 316 | } else if (isPrecomp) { |
| 317 | if ( isPrecomp->getPrecompApp()->getProject()->hasNodeRendering() ) { |
| 318 | return true; |
| 319 | } |
| 320 | } else { |
| 321 | OutputEffectInstance* effect = dynamic_cast<OutputEffectInstance*>( (*it)->getEffectInstance().get() ); |
| 322 | if ( effect && effect->getRenderEngine()->hasThreadsWorking() ) { |
| 323 | return true; |
| 324 | } |
| 325 | } |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | return false; |
| 330 | } |
| 331 | |
| 332 | void |
| 333 | NodeCollection::refreshViewersAndPreviews() |
nothing calls this directly
no test coverage detected