Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d_gizmo_navigate.cc
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | switch (area->spacetype) { | ||||
| } | } | ||||
| case SPACE_IMAGE: { | case SPACE_IMAGE: { | ||||
| const SpaceImage *sima = static_cast<const SpaceImage *>(area->spacedata.first); | const SpaceImage *sima = static_cast<const SpaceImage *>(area->spacedata.first); | ||||
| if (sima->gizmo_flag & (SI_GIZMO_HIDE | SI_GIZMO_HIDE_NAVIGATE)) { | if (sima->gizmo_flag & (SI_GIZMO_HIDE | SI_GIZMO_HIDE_NAVIGATE)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case SPACE_CLIP: { | |||||
| const SpaceClip *sc = static_cast<const SpaceClip *>(area->spacedata.first); | |||||
| if (sc->gizmo_flag & (SCLIP_GIZMO_HIDE | SCLIP_GIZMO_HIDE_NAVIGATE)) { | |||||
| return false; | |||||
| } | |||||
| break; | |||||
| } | |||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| static void WIDGETGROUP_navigate_setup(const bContext * /*C*/, wmGizmoGroup *gzgroup) | static void WIDGETGROUP_navigate_setup(const bContext * /*C*/, wmGizmoGroup *gzgroup) | ||||
| { | { | ||||
| NavigateWidgetGroup *navgroup = MEM_cnew<NavigateWidgetGroup>(__func__); | NavigateWidgetGroup *navgroup = MEM_cnew<NavigateWidgetGroup>(__func__); | ||||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||