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

Method removeAllImagesFromCacheWithMatchingIDAndDifferentKey

Engine/Node.cpp:923–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923void
924Node::removeAllImagesFromCacheWithMatchingIDAndDifferentKey(U64 nodeHashKey)
925{
926 AppInstancePtr app = getApp();
927
928 if (!app) {
929 return;
930 }
931 ProjectPtr proj = app->getProject();
932
933 if ( proj->isProjectClosing() || proj->isLoadingProject() ) {
934 return;
935 }
936 appPTR->removeAllImagesFromCacheWithMatchingIDAndDifferentKey(this, nodeHashKey);
937 appPTR->removeAllImagesFromDiskCacheWithMatchingIDAndDifferentKey(this, nodeHashKey);
938 ViewerInstance* isViewer = dynamic_cast<ViewerInstance*>( _imp->effect.get() );
939 if (isViewer) {
940 //Also remove from viewer cache
941 appPTR->removeAllTexturesFromCacheWithMatchingIDAndDifferentKey(this, nodeHashKey);
942 }
943}
944
945void
946Node::removeAllImagesFromCache(bool blocking)

Callers

nothing calls this directly

Tested by

no test coverage detected