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

Method refreshViewersAndPreviews

Engine/NodeGroup.cpp:334–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void
335NodeCollection::refreshViewersAndPreviews()
336{
337 assert( QThread::currentThread() == qApp->thread() );
338
339 AppInstancePtr appInst = getApplication();
340 if (!appInst) {
341 return;
342 }
343 if ( !appInst->isBackground() ) {
344 NodesList nodes = getNodes();
345 for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) {
346 assert(*it);
347 (*it)->refreshPreviewsAfterProjectLoad();
348 NodeGroup* isGrp = (*it)->isEffectGroup();
349 if (isGrp) {
350 isGrp->refreshViewersAndPreviews();
351 } else {
352 ViewerInstance* n = (*it)->isEffectViewer();
353 if (n) {
354 n->renderCurrentFrame(true);
355 }
356 }
357 }
358 }
359}
360
361void
362NodeCollection::refreshPreviews()

Callers

nothing calls this directly

Calls 5

isBackgroundMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
renderCurrentFrameMethod · 0.45

Tested by

no test coverage detected