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:
authorPablo Dobarro <pablodp606>2021-05-06 20:16:10 +0300
committerPablo Dobarro <pablodp606@gmail.com>2021-05-06 20:16:40 +0300
commitee0ec0f2af4f03340c4fc91495f702bb67a96c33 (patch)
tree2cd31641795c31f0397f13d5c936be92a626b370 /release
parentb0271e4f0582563d2ec72324a9f4eba1da1f6978 (diff)
Fix T83398: Fade inactive geometry overlay option not visible depending on the mode
This option should always be available. Even if it does not affect the current object depending on its mode, it affects the rest of the geometry of the scene. The rest of the options also work this way. For example, a grease pencil object does not have face orientation, but the ovelay option is still there for the rest of the scene. Reviewed By: JulienKaspar, HooglyBoogly Maniphest Tasks: T83398 Differential Revision: https://developer.blender.org/D10215
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index d86e65d9f0d..bdc924e3197 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6191,10 +6191,7 @@ class VIEW3D_PT_overlay_geometry(Panel):
sub.prop(overlay, "wireframe_opacity", text="Opacity")
row = col.row(align=True)
- if context.mode not in {
- 'EDIT_ARMATURE', 'POSE', 'OBJECT',
- 'PAINT_GPENCIL', 'VERTEX_GPENCIL', 'WEIGHT_GPENCIL', 'SCULPT_GPENCIL', 'EDIT_GPENCIL',
- }:
+ if context.mode != 'OBJECT':
row.prop(overlay, "show_fade_inactive", text="")
sub = row.row()
sub.active = overlay.show_fade_inactive