Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-05-07 21:09:03 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-05-07 21:09:03 +0400
commit3e19e7145fcf53d8331cf9c3e940e8aa866575d1 (patch)
tree0f4c8e012c4e6bc7c3ca8131b84975d05251522a /io_mesh_ply
parentae74dc51cf37ee77786a4c76122feb7225bae648 (diff)
Fix T40069: PLY import vertex colour scaling.
devide chars by 255, not 256...
Diffstat (limited to 'io_mesh_ply')
-rw-r--r--io_mesh_ply/import_ply.py2
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')