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:
authorRobert Guetzkow <rjg>2019-04-05 20:00:18 +0300
committerJacques Lucke <mail@jlucke.com>2019-04-05 20:00:18 +0300
commit71846207f1e6fcff541558ebcb69323fc8885df2 (patch)
tree424e205425c9c121b608fc71443008b69479cb64 /io_mesh_ply
parentb9ba95de270f5bffc3b99526a63801f48f3b64bc (diff)
Fix bug in previous commit
Differential Revision: https://developer.blender.org/D4655
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 c03f00a0..0e02951e 100644
--- a/io_mesh_ply/import_ply.py
+++ b/io_mesh_ply/import_ply.py
@@ -255,9 +255,9 @@ def load_ply_mesh(filepath, ply_name):
else:
colindices = el.index(b'red'), el.index(b'green'), el.index(b'blue'), el.index(b'alpha')
if -1 in colindices:
- colindices = None
if any(idx > -1 for idx in colindices):
print("Warning: At least one obligatory color channel is missing, ignoring vertex colors.")
+ colindices = None
else: # if not a float assume uchar
colmultiply = [1.0 if el.properties[i].numeric_type in {'f', 'd'} else (1.0 / 255.0) for i in colindices]