From c3f00d78796216ce15b6032f980539af6f1b0687 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 3 Jun 2019 14:47:44 +0200 Subject: Fix T65447: Mask doesn't update in compositor unless there's motion blur on This is probably just one of the related issues. Root of the problem was that compositor job was using original scene and node tree for compositing. It is not guaranteed to have all the evaluated data. Switched compositor job to use it's own render-pipeline-like dependency graph which has everything evaluated in it. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4998 --- source/blender/depsgraph/DEG_depsgraph_build.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/blender/depsgraph/DEG_depsgraph_build.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_build.h b/source/blender/depsgraph/DEG_depsgraph_build.h index 15abc0c0a64..effcece6e00 100644 --- a/source/blender/depsgraph/DEG_depsgraph_build.h +++ b/source/blender/depsgraph/DEG_depsgraph_build.h @@ -33,6 +33,7 @@ struct Depsgraph; /* ------------------------------------------------ */ +struct bNodeTree; struct CacheFile; struct Collection; struct CustomData_MeshMasks; @@ -65,6 +66,17 @@ void DEG_graph_build_for_render_pipeline(struct Depsgraph *graph, struct Scene *scene, struct ViewLayer *view_layer); +/* Builds minimal dependency graph for compositor preview. + * + * Note that compositor editor might have pinned node tree, which is different from scene's node + * tree. + */ +void DEG_graph_build_for_compositor_preview(struct Depsgraph *graph, + struct Main *bmain, + struct Scene *scene, + struct ViewLayer *view_layer, + struct bNodeTree *nodetree); + /* Tag relations from the given graph for update. */ void DEG_graph_tag_relations_update(struct Depsgraph *graph); -- cgit v1.2.3