Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-25 07:42:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-25 07:42:10 +0400
commitb847fba4910dadf0337ec7f35cf78aa8c1f5aa0b (patch)
tree7d6d48452e3a52a007b3abc92cdb04233458df33 /io_scene_3ds
parent199da926e833a87c90e817f47bbee9d586d195ae (diff)
minor pep8 edits
Diffstat (limited to 'io_scene_3ds')
-rw-r--r--io_scene_3ds/export_3ds.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py
index c3a7d51c..b71381f2 100644
--- a/io_scene_3ds/export_3ds.py
+++ b/io_scene_3ds/export_3ds.py
@@ -352,8 +352,8 @@ class _3ds_chunk(object):
'''
__slots__ = "ID", "size", "variables", "subchunks"
- def __init__(self, id=0):
- self.ID = _3ds_ushort(id)
+ def __init__(self, chunk_id=0):
+ self.ID = _3ds_ushort(chunk_id)
self.size = _3ds_uint(0)
self.variables = []
self.subchunks = []
@@ -439,11 +439,11 @@ def get_material_images(material):
# return images
-def make_material_subchunk(id, color):
+def make_material_subchunk(chunk_id, color):
'''Make a material subchunk.
Used for color subchunks, such as diffuse color or ambient color subchunks.'''
- mat_sub = _3ds_chunk(id)
+ mat_sub = _3ds_chunk(chunk_id)
col1 = _3ds_chunk(RGB1)
col1.add_variable("color1", _3ds_rgb_color(color))
mat_sub.add_subchunk(col1)
@@ -454,10 +454,10 @@ def make_material_subchunk(id, color):
return mat_sub
-def make_material_texture_chunk(id, images):
+def make_material_texture_chunk(chunk_id, images):
"""Make Material Map texture chunk
"""
- mat_sub = _3ds_chunk(id)
+ mat_sub = _3ds_chunk(chunk_id)
def add_image(image):
import bpy