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:
authorJuanfran Matheu <jfmatheu>2022-05-05 01:16:15 +0300
committerPablo Vazquez <pablo@blender.org>2022-05-05 01:23:25 +0300
commited0964c97623a7542dab900ebda900f3953db4bb (patch)
tree17d6683ff76bc8c67ed3107c9772e7553d9e01d8 /source/blender/editors/interface/view2d_gizmo_navigate.cc
parent319a772b7f6ee480630e75a199b298b118f65d60 (diff)
UI: Add Gizmos toggle to SpaceImage
This patch adds the show_gizmo and show_gizmo_navigate properties to the Image and UV editors. Image Editor: {F13026317} UV Editor: {F13026319} VIDEO: {F13026324} Reviewed By: #user_interface, campbellbarton Differential Revision: https://developer.blender.org/D14755
Diffstat (limited to 'source/blender/editors/interface/view2d_gizmo_navigate.cc')
-rw-r--r--source/blender/editors/interface/view2d_gizmo_navigate.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/interface/view2d_gizmo_navigate.cc b/source/blender/editors/interface/view2d_gizmo_navigate.cc
index 01729e35246..fae28833e4f 100644
--- a/source/blender/editors/interface/view2d_gizmo_navigate.cc
+++ b/source/blender/editors/interface/view2d_gizmo_navigate.cc
@@ -130,6 +130,13 @@ static bool WIDGETGROUP_navigate_poll(const bContext *C, wmGizmoGroupType *UNUSE
}
break;
}
+ case SPACE_IMAGE: {
+ const SpaceImage *sima = static_cast<const SpaceImage *>(area->spacedata.first);
+ if (sima->gizmo_flag & (SI_GIZMO_HIDE | SI_GIZMO_HIDE_NAVIGATE)) {
+ return false;
+ }
+ break;
+ }
}
return true;
}