[Bf-blender-cvs] [8a429b03e13] blender2.8: Cleanup: style

Campbell Barton noreply at git.blender.org
Fri Jul 13 08:42:53 CEST 2018


Commit: 8a429b03e130cb77378cabd35b2f4a8f8dd3f1d2
Author: Campbell Barton
Date:   Fri Jul 13 08:42:34 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8a429b03e130cb77378cabd35b2f4a8f8dd3f1d2

Cleanup: style

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

M	release/scripts/startup/bl_ui/properties_render.py
M	release/scripts/startup/bl_ui/space_userpref.py
M	release/scripts/startup/bl_ui/space_view3d.py

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

diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py
index ff36d2494ea..a7cfee5ed8f 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -739,7 +739,7 @@ class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
 
         sub = row.row(align=True)
         sub.prop(props, "gi_cubemap_draw_size", text="Size")
-        if props.gi_show_cubemaps :
+        if props.gi_show_cubemaps:
             sub.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_OFF')
         else:
             sub.prop(props, "gi_show_cubemaps", text="", toggle=True, icon='HIDE_ON')
@@ -750,7 +750,7 @@ class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
 
         sub = row.row(align=True)
         sub.prop(props, "gi_irradiance_draw_size", text="Size")
-        if props.gi_show_irradiance :
+        if props.gi_show_irradiance:
             sub.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_OFF')
         else:
             sub.prop(props, "gi_show_irradiance", text="", toggle=True, icon='HIDE_ON')
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 939e958375a..806b57e0297 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -1473,7 +1473,6 @@ class USERPREF_PT_addons(Panel):
                 sub.active = is_enabled
                 sub.label(text="%s: %s" % (info["category"], info["name"]))
 
-
                 # WARNING: 2.8x exception, may be removed
                 # use disabled state for old add-ons, chances are they are broken.
                 if info.get("blender", (0,)) < (2, 80):
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index db5efeb43c2..53e4346550e 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3710,12 +3710,14 @@ class VIEW3D_PT_object_type_visibility(Panel):
         col = layout.column()
 
         attr_object_types = (
+            # Geometry
             "mesh",
             "curve",
             "surf",
             "meta",
             "font",
             None,
+            # Other
             "armature",
             "lattice",
             "empty",



More information about the Bf-blender-cvs mailing list