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