[Bf-blender-cvs] [eea3506019a] blender2.8: Draw manager: Make update context aware of what depsgraph causes update
Sergey Sharybin
noreply at git.blender.org
Tue Jan 16 16:00:33 CET 2018
Commit: eea3506019a1c90a515427534de8f72e8e56a986
Author: Sergey Sharybin
Date: Tue Jan 16 15:38:44 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBeea3506019a1c90a515427534de8f72e8e56a986
Draw manager: Make update context aware of what depsgraph causes update
===================================================================
M source/blender/draw/DRW_engine.h
M source/blender/editors/render/render_update.c
===================================================================
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,
More information about the Bf-blender-cvs
mailing list