Skip to content
Snippets Groups Projects
Commit 3e19e714 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Fix T40069: PLY import vertex colour scaling.

devide chars by 255, not 256...
parent ae74dc51
No related branches found
No related tags found
No related merge requests found
...@@ -239,7 +239,7 @@ def load_ply_mesh(filepath, ply_name): ...@@ -239,7 +239,7 @@ def load_ply_mesh(filepath, ply_name):
if -1 in colindices: if -1 in colindices:
colindices = None colindices = None
else: # if not a float assume uchar 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': elif el.name == b'face':
findex = el.index(b'vertex_indices') findex = el.index(b'vertex_indices')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment