From 53f4fc7da9d4b7acd613430bfd0f97536cc164de Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Mar 2019 10:44:13 +1100 Subject: Cleanup: style --- release/scripts/startup/bl_ui/properties_data_light.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_data_light.py') 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 -- cgit v1.2.3