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-07-11 02:57:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-11 02:57:27 +0400
commit488e1da935d55330be55eb30b4605b993dd65dbd (patch)
treed4437d5e74e962482a4a6aa5336212c257f0245e /io_scene_3ds
parent8012053e1e178c8cabb133e05dc1e36d52908fa7 (diff)
cleanup
- remove/comment unused variables - remove unused imports - fixed some bugs using incorrect variables
Diffstat (limited to 'io_scene_3ds')
-rw-r--r--io_scene_3ds/export_3ds.py6
-rw-r--r--io_scene_3ds/import_3ds.py5
2 files changed, 1 insertions, 10 deletions
diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py
index b9f5d982..8264c18d 100644
--- a/io_scene_3ds/export_3ds.py
+++ b/io_scene_3ds/export_3ds.py
@@ -235,9 +235,6 @@ class _3ds_point_uv(object):
def __init__(self, point):
self.uv = point
- def __cmp__(self, other):
- return cmp(self.uv, other.uv)
-
def get_size(self):
return 2 * SZ_FLOAT
@@ -360,9 +357,6 @@ class _3ds_chunk(object):
self.variables = []
self.subchunks = []
- def set_ID(id):
- self.ID = _3ds_short(id)
-
def add_variable(self, name, var):
'''Add a named variable.
diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py
index 803b8e53..9dfda2aa 100644
--- a/io_scene_3ds/import_3ds.py
+++ b/io_scene_3ds/import_3ds.py
@@ -198,7 +198,6 @@ def read_string(file):
def process_next_object_chunk(file, previous_chunk):
new_chunk = chunk()
- temp_chunk = chunk()
while (previous_chunk.bytes_read < previous_chunk.length):
#read the next chunk
@@ -208,7 +207,7 @@ def process_next_object_chunk(file, previous_chunk):
def skip_to_end(file, skip_chunk):
buffer_size = skip_chunk.length - skip_chunk.bytes_read
binary_format = "%ic" % buffer_size
- temp_data = file.read(struct.calcsize(binary_format))
+ file.read(struct.calcsize(binary_format))
skip_chunk.bytes_read += buffer_size
@@ -256,14 +255,12 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
# TEXMODE = Mesh.FaceModes['TEX']
# Localspace variable names, faster.
- STRUCT_SIZE_1CHAR = struct.calcsize('c')
STRUCT_SIZE_2FLOAT = struct.calcsize('2f')
STRUCT_SIZE_3FLOAT = struct.calcsize('3f')
STRUCT_SIZE_4FLOAT = struct.calcsize('4f')
STRUCT_SIZE_UNSIGNED_SHORT = struct.calcsize('H')
STRUCT_SIZE_4UNSIGNED_SHORT = struct.calcsize('4H')
STRUCT_SIZE_4x3MAT = struct.calcsize('ffffffffffff')
- _STRUCT_SIZE_4x3MAT = struct.calcsize('fffffffffffff')
# STRUCT_SIZE_4x3MAT = calcsize('ffffffffffff')
# print STRUCT_SIZE_4x3MAT, ' STRUCT_SIZE_4x3MAT'
# only init once