MCPcopy Create free account
hub / github.com/MrKepzie/Natron / hasNodeRendering

Method hasNodeRendering

Engine/NodeGroup.cpp:303–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303bool
304NodeCollection::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
332void
333NodeCollection::refreshViewersAndPreviews()

Callers

nothing calls this directly

Calls 7

getEffectInstanceMethod · 0.80
getProjectMethod · 0.80
getPrecompAppMethod · 0.80
hasThreadsWorkingMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected