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-04-14 14:11:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-14 14:17:55 +0300
commit2120c5af032831348412a2a8e6c61f82ba1b921c (patch)
treeaffb3acf7fd4c467aab6e7eac873dcf18d2d631a /source/blender/editors/space_view3d/view3d_gizmo_forcefield.c
parent90e760270aac6a1e995d8bfd629f9da1851a65c9 (diff)
Gizmo: individual toggles for 3D view gizmos
The popover for displaying gizmos now has options for empty, light & camera gizmos. Transform toggles are now checkboxes, which has the advantage that it's more obvious they can be mixed however changing from one to another now uses 3x clicks instead of a single click-drag action. We might need a faster way to switch between transform types.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_forcefield.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_forcefield.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_forcefield.c b/source/blender/editors/space_view3d/view3d_gizmo_forcefield.c
index 8aa5cca4cbf..34cf38b3466 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_forcefield.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_forcefield.c
@@ -52,6 +52,9 @@ static bool WIDGETGROUP_forcefield_poll(const bContext *C, wmGizmoGroupType *UNU
if (v3d->gizmo_flag & (V3D_GIZMO_HIDE | V3D_GIZMO_HIDE_CONTEXT)) {
return false;
}
+ if ((v3d->gizmo_show_empty & V3D_GIZMO_SHOW_EMPTY_FORCE_FIELD) == 0) {
+ return false;
+ }
ViewLayer *view_layer = CTX_data_view_layer(C);
Base *base = BASACT(view_layer);