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>2012-01-02 13:55:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-02 13:55:54 +0400
commit93d8d84f014d8f1d06f39ccd7850393bb3f19380 (patch)
tree002a37b15fe5064302f7e268414115259876d24c /io_scene_3ds
parent173d775fc8fc8dab35f912d0ae393a82038c5cc4 (diff)
update for matrix col/row switch
Diffstat (limited to 'io_scene_3ds')
-rw-r--r--io_scene_3ds/export_3ds.py2
-rw-r--r--io_scene_3ds/import_3ds.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py
index b71381f2..385ffe41 100644
--- a/io_scene_3ds/export_3ds.py
+++ b/io_scene_3ds/export_3ds.py
@@ -713,7 +713,7 @@ def make_uv_chunk(uv_array):
def make_matrix_4x3_chunk(matrix):
matrix_chunk = _3ds_chunk(OBJECT_TRANS_MATRIX)
- for vec in matrix:
+ for vec in matrix.col:
for f in vec[:3]:
matrix_chunk.add_variable("matrix_f", _3ds_float(f))
return matrix_chunk
diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py
index 7c590230..fda09b58 100644
--- a/io_scene_3ds/import_3ds.py
+++ b/io_scene_3ds/import_3ds.py
@@ -617,7 +617,7 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
data[3:6] + [0],
data[6:9] + [0],
data[9:] + [1],
- ))
+ )).transposed()
elif (new_chunk.ID == MAT_MAP_FILEPATH):
texture_name, read_str_len = read_string(file)