diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-22 04:08:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-22 04:08:12 +0300 |
commit | 1b2b9c6b1f203048d5abf88083823614b405a790 (patch) | |
tree | b928f442821e4d89cdc7404697956d3a7d292d70 /release/scripts/startup/bl_ui/properties_particle.py | |
parent | d0fe116dc86daed8263e401b00e47469e2313388 (diff) |
Cleanup: redundant static set use
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_particle.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 5e8aa16c8e6..52089fa816d 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -820,7 +820,7 @@ class PARTICLE_PT_physics_boids_movement(ParticleButtonsPanel, Panel): @classmethod def poll(cls, context): part = particle_get_settings(context) - return part.physics_type in {'BOIDS'} + return part.physics_type == 'BOIDS' def draw(self, context): layout = self.layout @@ -873,7 +873,7 @@ class PARTICLE_PT_physics_boids_battle(ParticleButtonsPanel, Panel): @classmethod def poll(cls, context): part = particle_get_settings(context) - return part.physics_type in {'BOIDS'} + return part.physics_type == 'BOIDS' def draw(self, context): layout = self.layout @@ -900,7 +900,7 @@ class PARTICLE_PT_physics_boids_misc(ParticleButtonsPanel, Panel): @classmethod def poll(cls, context): part = particle_get_settings(context) - return part.physics_type in {'BOIDS'} + return part.physics_type == 'BOIDS' def draw(self, context): layout = self.layout @@ -1232,8 +1232,7 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel): part.type == 'EMITTER' or (part.render_type in {'OBJECT', 'COLLECTION'} and part.type == 'HAIR') ): - if part.render_type not in {'NONE'}: - + if part.render_type != 'NONE': col = layout.column(align=True) col.prop(part, "particle_size", text="Scale") col.prop(part, "size_random", slider=True, text="Scale Randomness") |