Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-16 06:29:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-16 06:54:32 +0300
commit165afb3ad097a8e89ab3b8547b7e947029a23fe2 (patch)
tree91b482bd2ea360c4af67b2d4e2154c09e01a72b4 /release/scripts/startup/bl_ui/properties_particle.py
parent31ac2e292e5fc5d4d85d00d97645bfcb9cd4e6c2 (diff)
Cleanup: pep8, unused vars, line length
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_particle.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_particle.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index 076b1f2592c..fa4ec391405 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -119,6 +119,7 @@ def find_modifier(ob, psys):
if md.type == 'PARTICLE_SYSTEM':
if md.particle_system == psys:
return md
+ return None
class PARTICLE_UL_particle_systems(bpy.types.UIList):
@@ -159,7 +160,10 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
@classmethod
def poll(cls, context):
engine = context.engine
- return (context.particle_system or context.object or context.space_data.pin_id) and (engine in cls.COMPAT_ENGINES)
+ return (
+ (context.particle_system or context.object or context.space_data.pin_id) and
+ (engine in cls.COMPAT_ENGINES)
+ )
def draw(self, context):
layout = self.layout