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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-09-22 19:12:12 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-07 11:26:32 +0300
commitb7ca2365cfc3d7b05779ab6d01e500e2938aa25e (patch)
tree5e129690868b4ed62214b16dad36f0d7a487fd81 /release
parent7f7efe78ceeb2d5f7b6d1049f97a410c11701c99 (diff)
UI: Hide fade inactive geometry overlay settings for unsupported modes
If this doesnt work in a particular mode, it would be better to indicate that in the Overlay popup. Differential Revision: https://developer.blender.org/D8981
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index c6fad77352c..92768305605 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6111,11 +6111,12 @@ class VIEW3D_PT_overlay_geometry(Panel):
col.prop(overlay, "show_face_orientation")
row = col.row(align=True)
-
- row.prop(overlay, "show_fade_inactive", text="")
- sub = row.row()
- sub.active = overlay.show_fade_inactive
- sub.prop(overlay, "fade_inactive_alpha", text="Fade Inactive Geometry")
+ if context.mode not in {'EDIT_ARMATURE', 'POSE', 'OBJECT', 'PAINT_GPENCIL',\
+ 'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL'}:
+ row.prop(overlay, "show_fade_inactive", text="")
+ sub = row.row()
+ sub.active = overlay.show_fade_inactive
+ sub.prop(overlay, "fade_inactive_alpha", text="Fade Inactive Geometry")
# sub.prop(overlay, "show_onion_skins")