diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-03 00:31:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-03 00:31:04 +0300 |
commit | 98b8dd7f4f46ee4b185809a0d98592095911c0eb (patch) | |
tree | 8f301fda5f2c580b70ac60d1578adb296dddfb5f | |
parent | 077c0bed3a20b627e3a92e10f5708a7c6f33f40e (diff) |
Cleanup: object_print3d_utils, unused imports, vars
-rw-r--r-- | object_print3d_utils/export.py | 2 | ||||
-rw-r--r-- | object_print3d_utils/mesh_helpers.py | 4 | ||||
-rw-r--r-- | object_print3d_utils/operators.py | 2 | ||||
-rw-r--r-- | object_print3d_utils/ui.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/object_print3d_utils/export.py b/object_print3d_utils/export.py index 2503c2f5..fc225ccc 100644 --- a/object_print3d_utils/export.py +++ b/object_print3d_utils/export.py @@ -110,7 +110,7 @@ def write_mesh(context, report_cb): def addon_ensure(addon_id): # Enable the addon, dont change preferences. - default_state, loaded_state = addon_utils.check(addon_id) + _default_state, loaded_state = addon_utils.check(addon_id) if not loaded_state: addon_utils.enable(addon_id, default_set=False) diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py index 165b0fc1..cffdf7c5 100644 --- a/object_print3d_utils/mesh_helpers.py +++ b/object_print3d_utils/mesh_helpers.py @@ -113,7 +113,7 @@ def bmesh_face_points_random(f, num_points=1, margin=0.05): uniform_args = 0.0 + margin, 1.0 - margin vecs = [v.co for v in f.verts] - for i in range(num_points): + for _ in range(num_points): u1 = uniform(*uniform_args) u2 = uniform(*uniform_args) u_tot = u1 + u2 @@ -172,7 +172,7 @@ def bmesh_check_thick_object(obj, thickness): p_b = p - no_end p_dir = p_b - p_a - ok, co, no, index = ray_cast(p_a, p_dir, distance=p_dir.length) + ok, _co, no, index = ray_cast(p_a, p_dir, distance=p_dir.length) if ok: # Add the face we hit diff --git a/object_print3d_utils/operators.py b/object_print3d_utils/operators.py index 3df5e0f7..33799f7f 100644 --- a/object_print3d_utils/operators.py +++ b/object_print3d_utils/operators.py @@ -562,7 +562,7 @@ class MESH_OT_print3d_select_report(Operator): def execute(self, context): obj = context.edit_object info = report.info() - text, data = info[self.index] + _text, data = info[self.index] bm_type, bm_array = data bpy.ops.mesh.reveal() diff --git a/object_print3d_utils/ui.py b/object_print3d_utils/ui.py index af3aa0df..83dda62b 100644 --- a/object_print3d_utils/ui.py +++ b/object_print3d_utils/ui.py @@ -60,7 +60,7 @@ class VIEW3D_PT_print3d_analyze(View3DPrintPanel, Panel): for i, (text, data) in enumerate(info): if is_edit and data and data[1]: - bm_type, bm_array = data + bm_type, _bm_array = data col.operator("mesh.print3d_select_report", text=text, icon=self._type_to_icon[bm_type],).index = i else: col.label(text=text) |