[Bf-extensions-cvs] [caf0c86b] master: PLY: Export alpha channel for vertex colors
Campbell Barton
noreply at git.blender.org
Fri Jan 25 00:55:13 CET 2019
Commit: caf0c86b45f088a942641980fd10238f80a67f0a
Author: Campbell Barton
Date: Fri Jan 25 10:47:14 2019 +1100
Branches: master
https://developer.blender.org/rBAcaf0c86b45f088a942641980fd10238f80a67f0a
PLY: Export alpha channel for vertex colors
===================================================================
M io_mesh_ply/export_ply.py
===================================================================
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index b50b6544..942fbce1 100644
--- a/io_mesh_ply/export_ply.py
+++ b/io_mesh_ply/export_ply.py
@@ -115,7 +115,7 @@ def save_mesh(filepath,
color = (int(color[0] * 255.0),
int(color[1] * 255.0),
int(color[2] * 255.0),
- 255
+ int(color[3] * 255.0),
)
key = normal_key, uvcoord_key, color
More information about the Bf-extensions-cvs
mailing list