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

Method removeAllImagesFromCacheWithMatchingIDAndDifferentKey

Engine/Node.cpp:1646–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644}
1645
1646void
1647Node::removeAllImagesFromCacheWithMatchingIDAndDifferentKey(U64 nodeHashKey)
1648{
1649 AppInstPtr app = getApp();
1650
1651 if (!app) {
1652 return;
1653 }
1654 boost::shared_ptr<Project> proj = app->getProject();
1655
1656 if ( proj->isProjectClosing() || proj->isLoadingProject() ) {
1657 return;
1658 }
1659 appPTR->removeAllImagesFromCacheWithMatchingIDAndDifferentKey(this, nodeHashKey);
1660 appPTR->removeAllImagesFromDiskCacheWithMatchingIDAndDifferentKey(this, nodeHashKey);
1661 ViewerInstance* isViewer = dynamic_cast<ViewerInstance*>( _imp->effect.get() );
1662 if (isViewer) {
1663 //Also remove from viewer cache
1664 appPTR->removeAllTexturesFromCacheWithMatchingIDAndDifferentKey(this, nodeHashKey);
1665 }
1666}
1667
1668void
1669Node::removeAllImagesFromCache(bool blocking)

Callers

nothing calls this directly

Tested by

no test coverage detected