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

Method updatePreviewImage

Gui/NodeGui.cpp:1332–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330}
1331
1332void
1333NodeGui::updatePreviewImage(double time)
1334{
1335 NodePtr node = getNode();
1336
1337 if ( isVisible() && node && node->isPreviewEnabled() && node->isActivated() && node->getApp()->getProject()->isAutoPreviewEnabled() ) {
1338 if ( (node->getScriptName().find(NATRON_FILE_DIALOG_PREVIEW_READER_NAME) != std::string::npos) ||
1339 ( node->getScriptName().find(NATRON_FILE_DIALOG_PREVIEW_VIEWER_NAME) != std::string::npos) ) {
1340 return;
1341 }
1342
1343 ensurePreviewCreated();
1344
1345 NodeGuiPtr thisShared = shared_from_this();
1346 assert(thisShared);
1347 appPTR->appendTaskToPreviewThread(thisShared, time);
1348 }
1349}
1350
1351void
1352NodeGui::forceComputePreview(double time)

Callers

nothing calls this directly

Calls 9

isVisibleFunction · 0.85
isAutoPreviewEnabledMethod · 0.80
getProjectMethod · 0.80
getNodeFunction · 0.70
isActivatedMethod · 0.45
getAppMethod · 0.45
findMethod · 0.45
getScriptNameMethod · 0.45

Tested by

no test coverage detected