diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-20 02:44:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-20 02:44:13 +0300 |
commit | 53f4fc7da9d4b7acd613430bfd0f97536cc164de (patch) | |
tree | 6b483be08221611a5848da6993c109ebfad2e707 /release/scripts/startup/bl_ui/properties_data_light.py | |
parent | 310a1f728cf4ab3ca50f40c62e4ff4f4b280d62b (diff) |
Cleanup: style
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_light.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_light.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_light.py b/release/scripts/startup/bl_ui/properties_data_light.py index acda015f8d4..3d78b3a664d 100644 --- a/release/scripts/startup/bl_ui/properties_data_light.py +++ b/release/scripts/startup/bl_ui/properties_data_light.py @@ -154,7 +154,10 @@ class DATA_PT_EEVEE_shadow(DataButtonsPanel, Panel): def poll(cls, context): light = context.light engine = context.engine - return (light and light.type in {'POINT', 'SUN', 'SPOT', 'AREA'}) and (engine in cls.COMPAT_ENGINES) + return ( + (light and light.type in {'POINT', 'SUN', 'SPOT', 'AREA'}) and + (engine in cls.COMPAT_ENGINES) + ) def draw_header(self, context): light = context.light @@ -219,7 +222,10 @@ class DATA_PT_EEVEE_shadow_contact(DataButtonsPanel, Panel): def poll(cls, context): light = context.light engine = context.engine - return (light and light.type in {'POINT', 'SUN', 'SPOT', 'AREA'}) and (engine in cls.COMPAT_ENGINES) + return ( + (light and light.type in {'POINT', 'SUN', 'SPOT', 'AREA'}) and + (engine in cls.COMPAT_ENGINES) + ) def draw_header(self, context): light = context.light @@ -303,7 +309,10 @@ class DATA_PT_falloff_curve(DataButtonsPanel, Panel): light = context.light engine = context.engine - return (light and light.type in {'POINT', 'SPOT'} and light.falloff_type == 'CUSTOM_CURVE') and (engine in cls.COMPAT_ENGINES) + return ( + (light and light.type in {'POINT', 'SPOT'} and light.falloff_type == 'CUSTOM_CURVE') and + (engine in cls.COMPAT_ENGINES) + ) def draw(self, context): light = context.light |