diff options
author | Arystanbek Dyussenov <arystan.d@gmail.com> | 2010-01-16 18:20:27 +0300 |
---|---|---|
committer | Arystanbek Dyussenov <arystan.d@gmail.com> | 2010-01-16 18:20:27 +0300 |
commit | 7bea39af62d8e83c7e375b925b5eee2aee851f66 (patch) | |
tree | c21d249c9b60fce867b0c495a45af94abb15b257 /release/scripts/io/export_obj.py | |
parent | 459f55ed9502c435d4f4117b1a053c4c598a016d (diff) |
Workaround to fix #20645. Iteration over multidim arrays and slicing of them is broken.
Before fixing this I'd like to clean BPY a bit.
Diffstat (limited to 'release/scripts/io/export_obj.py')
-rw-r--r-- | release/scripts/io/export_obj.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/io/export_obj.py b/release/scripts/io/export_obj.py index 8d1a9a9aced..7c4c83c53c7 100644 --- a/release/scripts/io/export_obj.py +++ b/release/scripts/io/export_obj.py @@ -563,7 +563,8 @@ def write(filename, objects, scene, tface = uv_layer.data[f_index] - uvs = tface.uv + # workaround, since tface.uv iteration is wrong atm + uvs = [tface.uv1, tface.uv2, tface.uv3, tface.uv4][:len(tface.uv)] # uvs = [tface.uv1, tface.uv2, tface.uv3] # # add another UV if it's a quad |