diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-05-07 21:09:03 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-05-07 21:09:03 +0400 |
commit | 3e19e7145fcf53d8331cf9c3e940e8aa866575d1 (patch) | |
tree | 0f4c8e012c4e6bc7c3ca8131b84975d05251522a | |
parent | ae74dc51cf37ee77786a4c76122feb7225bae648 (diff) |
Fix T40069: PLY import vertex colour scaling.
devide chars by 255, not 256...
-rw-r--r-- | io_mesh_ply/import_ply.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py index 5d4f8244..7d16be1f 100644 --- a/io_mesh_ply/import_ply.py +++ b/io_mesh_ply/import_ply.py @@ -239,7 +239,7 @@ def load_ply_mesh(filepath, ply_name): if -1 in colindices: colindices = None else: # if not a float assume uchar - colmultiply = [1.0 if el.properties[i].numeric_type in {'f', 'd'} else (1.0 / 256.0) for i in colindices] + colmultiply = [1.0 if el.properties[i].numeric_type in {'f', 'd'} else (1.0 / 255.0) for i in colindices] elif el.name == b'face': findex = el.index(b'vertex_indices') |