Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
e7917861
Commit
e7917861
authored
13 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
io_mesh_stl/stl_utils.py
+3
-3
3 additions, 3 deletions
io_mesh_stl/stl_utils.py
io_scene_3ds/export_3ds.py
+1
-1
1 addition, 1 deletion
io_scene_3ds/export_3ds.py
with
4 additions
and
4 deletions
io_mesh_stl/stl_utils.py
+
3
−
3
View file @
e7917861
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
io_scene_3ds/export_3ds.py
+
1
−
1
View file @
e7917861
...
...
@@ -446,7 +446,7 @@ def make_material_texture_chunk(id, images):
"""
mat_sub
=
_3ds_chunk
(
id
)
def
add_image
(
im
g
):
def
add_image
(
im
age
):
import
bpy
filename
=
bpy
.
path
.
basename
(
image
.
filepath
)
mat_sub_file
=
_3ds_chunk
(
MATMAPFILE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment