[Bf-blender-cvs] [15e5dbc2c3f] blender2.8: UI: tweaks to viewport shading and overlay panel layouts.
William Reynish
noreply at git.blender.org
Fri Jun 1 17:15:06 CEST 2018
Commit: 15e5dbc2c3f3146d81b8e13cb4f3f518762034ab
Author: William Reynish
Date: Fri Jun 1 16:58:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB15e5dbc2c3f3146d81b8e13cb4f3f518762034ab
UI: tweaks to viewport shading and overlay panel layouts.
===================================================================
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 8e5ca798ac3..6010b1e209f 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3552,12 +3552,14 @@ class VIEW3D_PT_shading(Panel):
sub.active = shading.show_object_outline
sub.prop(shading, "object_outline_color", text="")
+ col.prop(view, "show_world")
+
elif shading.type in ('MATERIAL'):
col.row().template_icon_view(shading, "studio_light")
if shading.studio_light_orientation == 'WORLD':
col.row().prop(shading, "studiolight_rot_z")
col.row().prop(shading, "studiolight_background")
- col.row().prop(shading, "use_scene_light")
+ col.prop(shading, "use_scene_light")
class VIEW3D_PT_overlay(Panel):
@@ -3579,21 +3581,13 @@ class VIEW3D_PT_overlay(Panel):
toolsettings = context.tool_settings
display_all = overlay.show_overlays
- col = layout.column()
- col.prop(view, "show_world")
-
col = layout.column()
col.active = display_all
- col.prop(overlay, "show_text", text="Text")
- col.prop(overlay, "show_cursor", text="3D Cursor")
col.prop(view, "show_manipulator", text="Manipulators")
- if shading.type == "MATERIAL":
- col.prop(overlay, "show_look_dev")
-
- col = layout.column()
- col.active = display_all
+ col.prop(overlay, "show_text", text="Text")
+ col.prop(overlay, "show_cursor", text="3D Cursor")
col.prop(overlay, "show_outline_selected")
col.prop(overlay, "show_all_objects_origin")
col.prop(overlay, "show_relationship_lines")
@@ -3602,6 +3596,9 @@ class VIEW3D_PT_overlay(Panel):
col.prop(overlay, "show_wireframes")
col.prop(overlay, "show_backface_culling")
+ if shading.type == "MATERIAL":
+ col.prop(overlay, "show_look_dev")
+
col = layout.column()
col.active = display_all
split = col.split(percentage=0.55)
@@ -3616,11 +3613,8 @@ class VIEW3D_PT_overlay(Panel):
sub.active = bool(overlay.show_floor or view.region_quadviews or not view.region_3d.is_perspective)
subsub = sub.column(align=True)
subsub.active = overlay.show_floor
- subsub.prop(overlay, "grid_lines", text="Lines")
sub.prop(overlay, "grid_scale", text="Scale")
- subsub = sub.column(align=True)
- subsub.active = scene.unit_settings.system == 'NONE'
- subsub.prop(overlay, "grid_subdivisions", text="Subdivisions")
+ sub.prop(overlay, "grid_subdivisions", text="Subdivisions")
if context.mode == 'EDIT_MESH':
col.separator()
More information about the Bf-blender-cvs
mailing list