[Bf-blender-cvs] [609805eed3e] blender2.8: UI: shorten labels to avoid clipping

William Reynish noreply at git.blender.org
Wed Jun 27 22:13:30 CEST 2018


Commit: 609805eed3eb9da2e81772279c4a501f644ac1f8
Author: William Reynish
Date:   Wed Jun 27 22:11:29 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB609805eed3eb9da2e81772279c4a501f644ac1f8

UI: shorten labels to avoid clipping

===================================================================

M	release/scripts/startup/bl_ui/properties_render.py
M	release/scripts/startup/bl_ui/properties_scene.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py
index 5458b038d98..78e77ce5f31 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -205,8 +205,8 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
-        layout.use_property_split = True
-        layout.use_property_decorate = False  # No animation.
+        layout.use_property_split = True
+        layout.use_property_decorate = False  # No animation.
 
         rd = context.scene.render
 
@@ -672,8 +672,8 @@ class RENDER_PT_eevee_shadows(RenderButtonsPanel, Panel):
 
         col = layout.column()
         col.prop(props, "shadow_method")
-        col.prop(props, "shadow_cube_size")
-        col.prop(props, "shadow_cascade_size")
+        col.prop(props, "shadow_cube_size", text="Cube Size")
+        col.prop(props, "shadow_cascade_size", text="Cascade Size")
         col.prop(props, "use_shadow_high_bitdepth")
 
 
@@ -719,7 +719,7 @@ class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
         col = layout.column()
         col.prop(props, "gi_diffuse_bounces")
         col.prop(props, "gi_cubemap_resolution")
-        col.prop(props, "gi_visibility_resolution")
+        col.prop(props, "gi_visibility_resolution", text="Diffuse Occlusion")
 
 
 class RENDER_PT_eevee_film(RenderButtonsPanel, Panel):
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 43706c360da..1394a9388d0 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -273,7 +273,7 @@ class SCENE_PT_color_management(SceneButtonsPanel, Panel):
 
         col.separator()
 
-        col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer Color Space")
+        col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer")
 
 
 class SCENE_PT_color_management_curves(SceneButtonsPanel, Panel):
@@ -441,6 +441,15 @@ class SCENE_PT_simplify(SceneButtonsPanel, Panel):
         rd = context.scene.render
         self.layout.prop(rd, "use_simplify", text="")
 
+    def draw(self, context):
+        layout = self.layout
+
+
+class SCENE_PT_simplify_viewport(SceneButtonsPanel, Panel):
+    bl_label = "Viewport"
+    bl_parent_id = "SCENE_PT_simplify"
+    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
+
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
@@ -450,13 +459,25 @@ class SCENE_PT_simplify(SceneButtonsPanel, Panel):
         layout.active = rd.use_simplify
 
         col = layout.column()
-        col.prop(rd, "simplify_subdivision", text="Max Viewport Subdivision")
+        col.prop(rd, "simplify_subdivision", text="Max Subdivision")
         col.prop(rd, "simplify_child_particles", text="Max Child Particles")
 
-        col.separator()
+
+class SCENE_PT_simplify_render(SceneButtonsPanel, Panel):
+    bl_label = "Render"
+    bl_parent_id = "SCENE_PT_simplify"
+    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
+
+    def draw(self, context):
+        layout = self.layout
+        layout.use_property_split = True
+
+        rd = context.scene.render
+
+        layout.active = rd.use_simplify
 
         col = layout.column()
-        col.prop(rd, "simplify_subdivision_render", text="Max Render Subdivision")
+        col.prop(rd, "simplify_subdivision_render", text="Max Subdivision")
         col.prop(rd, "simplify_child_particles_render", text="Max Child Particles")
 
 
@@ -518,6 +539,8 @@ classes = (
     SCENE_PT_rigid_body_cache,
     SCENE_PT_rigid_body_field_weights,
     SCENE_PT_simplify,
+    SCENE_PT_simplify_viewport,
+    SCENE_PT_simplify_render,
     SCENE_PT_custom_props,
 )



More information about the Bf-blender-cvs mailing list