diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-08-13 17:57:42 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-08-13 17:57:42 +0300 |
commit | 735c717a63c8870d2ef4a910d82a2648cbaaa5e1 (patch) | |
tree | 4cff1cfe01053b8cc188cc69e1c2c60946fe37cc /source/blender/editors/include | |
parent | cba7391d4a42a44efeddae3ff717e542a3c73738 (diff) | |
parent | 53683dec7d9ac9f324ff91904c9f80b8018b9b9c (diff) |
Merge branch 'master' into greasepencil-edit-curve
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 6e0f4434b7b..1bd9b3063bd 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -120,6 +120,12 @@ void UI_view2d_curRect_validate(struct View2D *v2d); void UI_view2d_curRect_reset(struct View2D *v2d); void UI_view2d_sync(struct bScreen *screen, struct ScrArea *area, struct View2D *v2dcur, int flag); +/* Perform all required updates after `v2d->cur` as been modified. + * This includes like validation view validation (UI_view2d_curRect_validate). + * + * Current lintent is to use it from user code, such as view navigation and zoom operations. */ +void UI_view2d_curRect_changed(const struct bContext *C, struct View2D *v2d); + void UI_view2d_totRect_set(struct View2D *v2d, int width, int height); void UI_view2d_totRect_set_resize(struct View2D *v2d, int width, int height, bool resize); |