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
parent199da926e833a87c90e817f47bbee9d586d195ae (diff)
minor pep8 edits
-rw-r--r--io_curve_svg/import_svg.py6
-rw-r--r--io_scene_3ds/export_3ds.py12
-rw-r--r--io_scene_fbx/export_fbx.py4
-rw-r--r--io_scene_x3d/import_x3d.py6
4 files changed, 14 insertions, 14 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 56ca68a6..6904e8bc 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -960,9 +960,9 @@ class SVGGeometry:
if hasattr(node, 'getAttribute'):
defs = context['defines']
- id = node.getAttribute('id')
- if id and defs.get('#' + id) is None:
- defs['#' + id] = self
+ attr_id = node.getAttribute('id')
+ if attr_id and defs.get('#' + attr_id) is None:
+ defs['#' + attr_id] = self
className = node.getAttribute('class')
if className and defs.get(className) is None:
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
diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py
index 89bc275b..e7c61f18 100644
--- a/io_scene_fbx/export_fbx.py
+++ b/io_scene_fbx/export_fbx.py
@@ -879,7 +879,7 @@ def save_single(operator, scene, filepath="",
'\n\t\t\tProperty: "UseMotionBlur", "bool", "",0'
'\n\t\t\tProperty: "UseRealTimeMotionBlur", "bool", "",1'
'\n\t\t\tProperty: "ResolutionMode", "enum", "",0'
- '\n\t\t\tProperty: "ApertureMode", "enum", "",3' # horizontal - Houdini compatible
+ '\n\t\t\tProperty: "ApertureMode", "enum", "",3' # horizontal - Houdini compatible
'\n\t\t\tProperty: "GateFit", "enum", "",2'
'\n\t\t\tProperty: "CameraFormat", "enum", "",0'
)
@@ -908,7 +908,7 @@ def save_single(operator, scene, filepath="",
fw('\n\t\t\tProperty: "NearPlane", "double", "",%.6f' % (data.clip_start * global_scale))
fw('\n\t\t\tProperty: "FarPlane", "double", "",%.6f' % (data.clip_end * global_scale))
-
+
fw('\n\t\t\tProperty: "FilmWidth", "double", "",%.6f' % filmwidth)
fw('\n\t\t\tProperty: "FilmHeight", "double", "",%.6f' % filmheight)
fw('\n\t\t\tProperty: "FilmAspectRatio", "double", "",%.6f' % filmaspect)
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 15ee3a4b..c3ecbeec 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -2463,11 +2463,11 @@ def importRoute(node, ancestry):
routeIpoDict = node.getRouteIpoDict()
- def getIpo(id):
+ def getIpo(act_id):
try:
- action = routeIpoDict[id]
+ action = routeIpoDict[act_id]
except:
- action = routeIpoDict[id] = bpy.data.actions.new('web3d_ipo')
+ action = routeIpoDict[act_id] = bpy.data.actions.new('web3d_ipo')
return action
# for getting definitions