Skip to content
Snippets Groups Projects
Commit 5d69d973 authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: io_scene_obj, unused imports, vars

parent 0ca541cb
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment