diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-09 02:15:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-09 05:42:05 +0300 |
commit | fc37238b17ed1a8c80bf5eaf849ab3fc4af59069 (patch) | |
tree | 36f1e64753753f43ee95bc3da126beb955469e85 /release/scripts/startup/bl_operators/add_mesh_torus.py | |
parent | bc39fa947a821f1114fb5594dcd22958f7958df9 (diff) |
Cleanup: unused args/vars/imports in bl_operators
Diffstat (limited to 'release/scripts/startup/bl_operators/add_mesh_torus.py')
-rw-r--r-- | release/scripts/startup/bl_operators/add_mesh_torus.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py index e4495127ce7..a22161fc1ae 100644 --- a/release/scripts/startup/bl_operators/add_mesh_torus.py +++ b/release/scripts/startup/bl_operators/add_mesh_torus.py @@ -130,7 +130,7 @@ class AddTorus(Operator, object_utils.AddObjectHelper): bl_label = "Add Torus" bl_options = {'REGISTER', 'UNDO', 'PRESET'} - def mode_update_callback(self, context): + def mode_update_callback(self, _context): if self.mode == 'EXT_INT': self.abso_major_rad = self.major_radius + self.minor_radius self.abso_minor_rad = self.major_radius - self.minor_radius @@ -196,7 +196,7 @@ class AddTorus(Operator, object_utils.AddObjectHelper): default=True, ) - def draw(self, context): + def draw(self, _context): layout = self.layout col = layout.column(align=True) @@ -241,7 +241,7 @@ class AddTorus(Operator, object_utils.AddObjectHelper): col.label(text="Interior Radius") col.prop(self, "abso_minor_rad", text="") - def invoke(self, context, event): + def invoke(self, context, _event): object_utils.object_add_grid_scale_apply_operator(self, context) return self.execute(context) |