[Bf-extensions-cvs] [95744253] blender2.7: Fix T62256: Export to PLY of models with vertex colors broken in 2.79.
Bastien Montagne
noreply at git.blender.org
Thu Mar 7 14:00:56 CET 2019
Commit: 957442534ed02a68c1dd510aa7a9d6b2267b095d
Author: Bastien Montagne
Date: Thu Mar 7 14:00:39 2019 +0100
Branches: blender2.7
https://developer.blender.org/rBA957442534ed02a68c1dd510aa7a9d6b2267b095d
Fix T62256: Export to PLY of models with vertex colors broken in 2.79.
===================================================================
M io_mesh_ply/export_ply.py
===================================================================
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]
More information about the Bf-extensions-cvs
mailing list