From a6b6689c0ab769bfdf4db932e4afd75ac0d42e10 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 28 Nov 2017 17:05:52 +0100 Subject: 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. --- source/blender/draw/DRW_engine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/draw/DRW_engine.h') 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); -- cgit v1.2.3