diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-03 00:21:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-03 00:21:24 +0300 |
commit | 5d69d9734b42a57b0bd2ee9877e40639c7780eca (patch) | |
tree | e05cff4a3072591bf4f7792f90d6be97e3576b2e /io_scene_obj | |
parent | 0ca541cbdb531c3c4ec50a147d9069dd37a4f181 (diff) |
Cleanup: io_scene_obj, unused imports, vars
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/export_obj.py | 3 | ||||
-rw-r--r-- | io_scene_obj/import_obj.py | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index bb2b0e8d..dbd966a8 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -47,9 +47,6 @@ def mesh_triangulate(me): def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict): - world = scene.world - world_amb = Color((0.8, 0.8, 0.8)) - source_dir = os.path.dirname(bpy.data.filepath) dest_dir = os.path.dirname(filepath) diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 0c2d6995..356dd43d 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -510,9 +510,9 @@ def split_mesh(verts_loc, faces, unique_materials, filepath, SPLIT_OB_OR_GROUP): face_vert_nor_indices, face_vert_tex_indices, context_material, - context_smooth_group, + _context_smooth_group, context_object_key, - face_invalid_blenpoly, + _face_invalid_blenpoly, ) = face key = context_object_key @@ -956,8 +956,6 @@ def load(context, if use_split_objects or use_split_groups: use_groups_as_vgroups = False - time_main = time.time() - verts_loc = [] verts_nor = [] verts_tex = [] @@ -1245,7 +1243,6 @@ def load(context, if bpy.ops.object.select_all.poll(): bpy.ops.object.select_all(action='DESELECT') - scene = context.scene new_objects = [] # put new objects here # Split the mesh by objects/materials, may |