diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-07 16:00:39 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-07 16:00:39 +0300 |
commit | 957442534ed02a68c1dd510aa7a9d6b2267b095d (patch) | |
tree | bd1170e9558815e44f212fab134d58d1f59b77e3 | |
parent | 40064d566063eb05c6907bd070ec78fdc3d86794 (diff) |
Fix T62256: Export to PLY of models with vertex colors broken in 2.79.
-rw-r--r-- | io_mesh_ply/export_ply.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index 8de5d674..ddba43e7 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -116,10 +116,12 @@ def save_mesh(filepath, if has_vcol: color = col[j] - color = (int(color[0] * 255.0), - int(color[1] * 255.0), - int(color[2] * 255.0), - ) + color = ( + int(color[0] * 255.0), + int(color[1] * 255.0), + int(color[2] * 255.0), + int(color[3] * 255.0), + ) key = normal_key, uvcoord_key, color vdict_local = vdict[vidx] |