Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-31 14:45:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 14:51:02 +0300
commita9450dbf0d8bd3f4d03808220fbc4353ce563d3f (patch)
tree162394bf6fab05bca3e34e2b93e6cf03975f3d99 /source/blender/editors/space_image/space_image.c
parent56a533c0711a486375408afaa7ac51da1613ccee (diff)
Gizmo: add 2D navigation for image/clip/sequencer views
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r--source/blender/editors/space_image/space_image.c10
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 ***************************/