| 650 | } |
| 651 | |
| 652 | void |
| 653 | PrecompNodePrivate::refreshReadNodeInput() |
| 654 | { |
| 655 | assert(readNode); |
| 656 | KnobIPtr fileNameKnob = readNode->getKnobByName(kOfxImageEffectFileParamName); |
| 657 | if (!fileNameKnob) { |
| 658 | return; |
| 659 | } |
| 660 | //Remove all images from the cache associated to the reader since we know they are no longer valid. |
| 661 | //This is a blocking call so that we are sure there's no old image laying around in the cache after this call |
| 662 | readNode->removeAllImagesFromCache(true); |
| 663 | readNode->purgeAllInstancesCaches(); |
| 664 | |
| 665 | //Force the reader to reload the sequence/video |
| 666 | fileNameKnob->evaluateValueChange(0, _publicInterface->getApp()->getTimeLine()->currentFrame(), ViewIdx(0), eValueChangedReasonUserEdited); |
| 667 | } |
| 668 | |
| 669 | void |
| 670 | PrecompNodePrivate::launchPreRender() |
no test coverage detected