ensure invalidated values are removed
When a node receives an InvalidateCache signal, it will automatically signal its outputs to discard any cached values in the invalidated time range
This commit is contained in:
@@ -83,6 +83,13 @@ void Node::InvalidateCache(const rational &start_range, const rational &end_rang
|
||||
{
|
||||
Q_UNUSED(from)
|
||||
|
||||
foreach (NodeParam* param, params_) {
|
||||
if (param->type() == NodeParam::kOutput) {
|
||||
NodeOutput* output = static_cast<NodeOutput*>(param);
|
||||
output->drop_cached_values_overlapping(TimeRange(start_range, end_range));
|
||||
}
|
||||
}
|
||||
|
||||
SendInvalidateCache(start_range, end_range);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user