diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-19 08:32:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-19 08:32:24 +0300 |
commit | 5b0f0421ef1d841d7389b504057dbf76998007c7 (patch) | |
tree | 01fd941322922ad06a24b7179b52c66ac3a4d2ad /release/scripts/startup/bl_ui/properties_particle.py | |
parent | 9573bf432c4b06d940b4b38cc455826f47518884 (diff) |
Cleanup: mark unused arguments in UI scripts
Quiet's pylint W0613 warning, also remove some unused args.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_particle.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 0667bff8177..6414c1ceede 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -69,7 +69,7 @@ class PARTICLE_MT_context_menu(Menu): bl_label = "Particle Specials" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} - def draw(self, context): + def draw(self, _context): layout = self.layout props = layout.operator( @@ -122,7 +122,7 @@ def find_modifier(ob, psys): class PARTICLE_UL_particle_systems(bpy.types.UIList): - def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index, flt_flag): + def draw_item(self, _context, layout, data, item, icon, _active_data, _active_propname, _index, _flt_flag): ob = data psys = item @@ -500,7 +500,7 @@ class PARTICLE_PT_cache(ParticleButtonsPanel, Panel): def draw(self, context): psys = context.particle_system - point_cache_ui(self, context, psys.point_cache, True, 'HAIR' if (psys.settings.type == 'HAIR') else 'PSYS') + point_cache_ui(self, psys.point_cache, True, 'HAIR' if (psys.settings.type == 'HAIR') else 'PSYS') class PARTICLE_PT_velocity(ParticleButtonsPanel, Panel): @@ -1813,7 +1813,7 @@ class PARTICLE_PT_field_weights(ParticleButtonsPanel, Panel): def draw(self, context): part = particle_get_settings(context) - effector_weights_ui(self, context, part.effector_weights, 'PSYS') + effector_weights_ui(self, part.effector_weights, 'PSYS') if part.type == 'HAIR': row = self.layout.row() @@ -1852,7 +1852,7 @@ class PARTICLE_PT_force_fields_type1(ParticleButtonsPanel, Panel): col = layout.column() col.prop(part.force_field_1, "type", text="Type 1") - basic_force_field_settings_ui(self, context, part.force_field_1) + basic_force_field_settings_ui(self, part.force_field_1) class PARTICLE_PT_force_fields_type2(ParticleButtonsPanel, Panel): @@ -1868,7 +1868,7 @@ class PARTICLE_PT_force_fields_type2(ParticleButtonsPanel, Panel): col = layout.column() col.prop(part.force_field_2, "type", text="Type 2") - basic_force_field_settings_ui(self, context, part.force_field_2) + basic_force_field_settings_ui(self, part.force_field_2) class PARTICLE_PT_force_fields_type1_falloff(ParticleButtonsPanel, Panel): @@ -1883,7 +1883,7 @@ class PARTICLE_PT_force_fields_type1_falloff(ParticleButtonsPanel, Panel): part = particle_get_settings(context) - basic_force_field_falloff_ui(self, context, part.force_field_1) + basic_force_field_falloff_ui(self, part.force_field_1) class PARTICLE_PT_force_fields_type2_falloff(ParticleButtonsPanel, Panel): @@ -1898,7 +1898,7 @@ class PARTICLE_PT_force_fields_type2_falloff(ParticleButtonsPanel, Panel): part = particle_get_settings(context) - basic_force_field_falloff_ui(self, context, part.force_field_2) + basic_force_field_falloff_ui(self, part.force_field_2) class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, Panel): |