diff options
Diffstat (limited to 'io_mesh_ply/export_ply.py')
-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] |