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

Method forceRefreshPreviews

Engine/NodeGroup.cpp:385–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void
386NodeCollection::forceRefreshPreviews()
387{
388 AppInstancePtr appInst = getApplication();
389 if (!appInst) {
390 return;
391 }
392 if ( appInst->isBackground() ) {
393 return;
394 }
395 double time = appInst->getTimeLine()->currentFrame();
396 NodesList nodes;
397 getActiveNodes(&nodes);
398 for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) {
399 if ( (*it)->isPreviewEnabled() ) {
400 (*it)->computePreviewImage(time);
401 }
402 NodeGroup* isGrp = (*it)->isEffectGroup();
403 if (isGrp) {
404 isGrp->forceRefreshPreviews();
405 }
406 }
407}
408
409void
410NodeCollection::clearNodesInternal(bool blocking)

Callers 1

Calls 5

isBackgroundMethod · 0.45
currentFrameMethod · 0.45
getTimeLineMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected