diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-16 17:38:44 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-01-16 17:38:44 +0300 |
commit | eea3506019a1c90a515427534de8f72e8e56a986 (patch) | |
tree | 683366adb26de838f1d4e6ef8d58521c9b8a97d7 /source | |
parent | 1e0283828f4bd0330ef1c58a957c60edaa095ed3 (diff) |
Draw manager: Make update context aware of what depsgraph causes update
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/DRW_engine.h | 1 | ||||
-rw-r--r-- | source/blender/editors/render/render_update.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h index 7fa640683e1..1fa9c5b4f0c 100644 --- a/source/blender/draw/DRW_engine.h +++ b/source/blender/draw/DRW_engine.h @@ -74,6 +74,7 @@ void DRW_engine_viewport_data_size_get( typedef struct DRWUpdateContext { struct Main *bmain; + struct Depsgraph *depsgraph; struct Scene *scene; struct ViewLayer *view_layer; struct ARegion *ar; diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c index 1de37f2eff7..f7ede251873 100644 --- a/source/blender/editors/render/render_update.c +++ b/source/blender/editors/render/render_update.c @@ -153,6 +153,7 @@ void ED_render_scene_update(const DEGEditorUpdateContext *update_ctx, int update DRW_notify_view_update( (&(DRWUpdateContext){ .bmain = bmain, + .depsgraph = update_ctx->depsgraph, .scene = scene, .view_layer = view_layer, .ar = ar, |