| 1644 | } |
| 1645 | |
| 1646 | void |
| 1647 | Node::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 | |
| 1668 | void |
| 1669 | Node::removeAllImagesFromCache(bool blocking) |
nothing calls this directly
no test coverage detected