diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 14:45:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 14:51:02 +0300 |
commit | a9450dbf0d8bd3f4d03808220fbc4353ce563d3f (patch) | |
tree | 162394bf6fab05bca3e34e2b93e6cf03975f3d99 /source/blender/editors/space_image | |
parent | 56a533c0711a486375408afaa7ac51da1613ccee (diff) |
Gizmo: add 2D navigation for image/clip/sequencer views
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index 539c9c09389..d01bd9f29a8 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -466,9 +466,19 @@ static void IMAGE_GGT_gizmo2d(wmGizmoGroupType *gzgt) gzgt->draw_prepare = ED_widgetgroup_gizmo2d_draw_prepare; } +static void IMAGE_GGT_navigate(wmGizmoGroupType *gzgt) +{ + VIEW2D_GGT_navigate_impl(gzgt, "IMAGE_GGT_navigate"); +} + static void image_widgets(void) { + wmGizmoMapType *gzmap_type = WM_gizmomaptype_ensure( + &(const struct wmGizmoMapType_Params){SPACE_IMAGE, RGN_TYPE_WINDOW}); + WM_gizmogrouptype_append(IMAGE_GGT_gizmo2d); + + WM_gizmogrouptype_append_and_link(gzmap_type, IMAGE_GGT_navigate); } /************************** main region ***************************/ |