Page MenuHome

UI: Allow gizmo-only redraw tagging

Authored by Julian Eisel (Severin) on Thu, Feb 13, 4:35 PM.



We currently redraw the entire area 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.

NOTE: This change shouldn't have any visible effect. It's just the first (easiest) step towards decoupling gizmo redraws from viewport redraws.

Diff Detail

rB Blender

Event Timeline

Julian Eisel (Severin) edited the summary of this revision. (Show Details)Thu, Feb 13, 4:39 PM

Let me add: I chose the name ED_region_tag_redraw_editor_overlays() over ED_region_tag_redraw_gizmos() because due to the way we currently draw, we can not redraw-gizmos without also redrawing other editor overlays. Namely annotations which are drawn in-between 3D and 2D gizmos.

Brecht Van Lommel (brecht) added inline comments.

This could be renamed to ED_region_tag_redraw_cursor since that's all it's doing. To avoid confusion with the new function.

This revision is now accepted and ready to land.Fri, Feb 14, 3:12 PM
This revision was automatically updated to reflect the committed changes.