Fix T40069: PLY import vertex colour scaling.
devide chars by 255, not 256...
This commit is contained in:
parent
ae74dc51cf
commit
3e19e7145f
Notes:
blender-bot
2023-02-14 20:07:35 +01:00
Referenced by issue #40069, PLY import vertex colour scaling
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue