diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-28 19:05:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-29 13:01:08 +0300 |
commit | a6b6689c0ab769bfdf4db932e4afd75ac0d42e10 (patch) | |
tree | 7a6b8a135ad7ac8c383b26b1ab330c2f9b594dfc /source/blender/draw/DRW_engine.h | |
parent | 6208ce2e0a60fdddc1fb12ae1a2f84dcdcd32d90 (diff) |
Draw manager: Listen to depsgraph's ID update callbacks
This replaces dedicated flag which wasn't clean who sets it and who clears it,
and which was also trying to re-implement existing functionality in a way.
Flushing is not currently very efficient but there are ways to speed this up
a lot, but needs more investigation.
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r-- | source/blender/draw/DRW_engine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h index f3e1bf5ceac..ba0f8681f10 100644 --- a/source/blender/draw/DRW_engine.h +++ b/source/blender/draw/DRW_engine.h @@ -34,6 +34,7 @@ struct Main; struct Material; struct Scene; struct DrawEngineType; +struct ID; struct IDProperty; struct bContext; struct Object; @@ -78,6 +79,7 @@ typedef struct DRWUpdateContext { struct RenderEngineType *engine_type; } DRWUpdateContext; void DRW_notify_view_update(const DRWUpdateContext *update_ctx); +void DRW_notify_id_update(const DRWUpdateContext *update_ctx, struct ID *id); void DRW_draw_view(const struct bContext *C); |