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

Method hasNodeRendering

Engine/NodeGroup.cpp:305–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bool
306NodeCollection::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
334void
335NodeCollection::refreshViewersAndPreviews()

Callers

nothing calls this directly

Calls 8

isOutputNodeMethod · 0.80
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