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:
authorCampbell Barton <ideasman42@gmail.com>2011-02-11 15:09:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 15:09:15 +0300
commita2f135e7d725d3a9232dfef1ee19ecae2efb9e31 (patch)
tree9523e898ac2162a9a167740cec314cec8a1ab813 /io_mesh_ply
parent914ac4194f3070cc12338e533b6e29610faeb3aa (diff)
use mesh.validate() to ensure all meshes of imported data is ok and wont crash blender.
Diffstat (limited to 'io_mesh_ply')
-rw-r--r--io_mesh_ply/import_ply.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py
index 1dac3a8d..8e5db68e 100644
--- a/io_mesh_ply/import_ply.py
+++ b/io_mesh_ply/import_ply.py
@@ -307,6 +307,7 @@ def load_ply(filepath):
for j, col in enumerate(f_col):
col.r, col.g, col.b = ply_col[j]
+ mesh.validate()
mesh.update()
scn = bpy.context.scene