From c4b9cb0af0ae50c5bdb4246b30aceadb12ec97d9 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 14 Feb 2020 15:36:12 +0100 Subject: UI: Allow gizmo-only redraw tagging NOTE: This change shouldn't have any visible effect. It's just the first (easiest) step towards decoupling gizmo redraws from viewport redraws. We currently redraw the entire region whenever a gizmo needs redrawing, which would be nice to avoid in the future, see T73198. The first step towards this would be having a separate tag for them, which is what this patch implements. The term "editor-overlays" was chosen because for the forseeable future, we'll also have to redraw non-gizmo overlays in-between drawing 3D and 2D gizmos. Namely annotations. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6838 --- source/blender/makesdna/DNA_screen_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_screen_types.h') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index a52767834a4..cded709b0d6 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -678,6 +678,9 @@ enum { RGN_DRAWING = 8, /* For popups, to refresh UI layout along with drawing. */ RGN_REFRESH_UI = 16, + + /* Only editor overlays (currently gizmos only!) should be redrawn. */ + RGN_DRAW_EDITOR_OVERLAYS = 32, }; #endif /* __DNA_SCREEN_TYPES_H__ */ -- cgit v1.2.3