[Bf-blender-cvs] [8a06249058e] blender2.8: Fix wireframe threshold not active on wireframe mode
Dalai Felinto
noreply at git.blender.org
Fri Sep 28 17:31:49 CEST 2018
Commit: 8a06249058e9ea70a20ce73577ab7b2b096c5f1f
Author: Dalai Felinto
Date: Fri Sep 28 12:05:25 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB8a06249058e9ea70a20ce73577ab7b2b096c5f1f
Fix wireframe threshold not active on wireframe mode
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 0d141a0dd6c..2b1a9e5698e 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4360,14 +4360,16 @@ class VIEW3D_PT_overlay_geometry(Panel):
view = context.space_data
overlay = view.overlay
display_all = overlay.show_overlays
+ is_wireframes = view.shading.type == 'WIREFRAME'
col = layout.column()
col.active = display_all
row = col.row()
- row.prop(overlay, "show_wireframes", text="")
+ if not is_wireframes:
+ row.prop(overlay, "show_wireframes", text="")
sub = row.row()
- sub.active = overlay.show_wireframes
+ sub.active = overlay.show_wireframes or is_wireframes
sub.prop(overlay, "wireframe_threshold", text="Wireframe")
col = layout.column(align=True)
More information about the Bf-blender-cvs
mailing list