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

fix for image export on 3ds files, dont overwrite builtin 'map' for stl io

parent 766d02e5
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,9 @@ def mmap_file(filename):
with open(filename, 'rb') as file:
# check http://bugs.python.org/issue8046 to have mmap context
# manager fixed in python
map = mmap.mmap(file.fileno(), 0, access=mmap.ACCESS_READ)
yield map
map.close()
mem_map = mmap.mmap(file.fileno(), 0, access=mmap.ACCESS_READ)
yield mem_map
mem_map.close()
class ListDict(dict):
......
......@@ -446,7 +446,7 @@ def make_material_texture_chunk(id, images):
"""
mat_sub = _3ds_chunk(id)
def add_image(img):
def add_image(image):
import bpy
filename = bpy.path.basename(image.filepath)
mat_sub_file = _3ds_chunk(MATMAPFILE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment