copy values whenever the cache is invalidated
Since we're now working with a separate proxy copy of the original node graph, if the user changes a parameter in one of those nodes (triggering an InvalidateCache signal), the values in our copied graph need to be updated with these new values too.
This commit is contained in:
@@ -40,24 +40,9 @@ void RenderWorker::Close()
|
||||
|
||||
void RenderWorker::Render(NodeDependency path)
|
||||
{
|
||||
NodeOutput* output = path.node();
|
||||
Node* node = output->parent();
|
||||
|
||||
QList<Node*> all_nodes_in_graph = ListNodeAndAllDependencies(node);
|
||||
|
||||
// Lock all Nodes to prevent UI changes during this render
|
||||
foreach (Node* dep, all_nodes_in_graph) {
|
||||
dep->LockUserInput();
|
||||
}
|
||||
|
||||
RenderInternal(path);
|
||||
|
||||
emit CompletedCache(path);
|
||||
|
||||
// Unlock all Nodes so changes can be made again
|
||||
foreach (Node* dep, all_nodes_in_graph) {
|
||||
dep->UnlockUserInput();
|
||||
}
|
||||
}
|
||||
|
||||
DecoderCache *RenderWorker::decoder_cache()
|
||||
|
||||
Reference in New Issue
Block a user