diff options
author | Seva Alekseyev <sevaa@nih.gov> | 2015-10-23 19:57:56 +0300 |
---|---|---|
committer | Seva Alekseyev <sevaa@nih.gov> | 2015-10-23 19:57:56 +0300 |
commit | 074bb39f3f6c29625ac834d4851905c095ad218c (patch) | |
tree | 1fc30654cc56392ca601a0c20184cb68ad5e8a04 | |
parent | 4b870b9fc3c3c9dee0e99b9033641caa5878af65 (diff) |
Fix: validating Extrusions after applying textures. Validation may remove vertices/faces from a mesh, so assumptions about mesh size might be off after validation.
-rw-r--r-- | io_scene_x3d/import_x3d.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 82a27d33..bf8e52b1 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -2253,7 +2253,6 @@ def importMesh_Extrusion(geom, ancestry, bpyima): bpymesh = bpy.data.meshes.new(name="Extrusion") bpymesh.from_pydata(verts, [], faces) - bpymesh.validate(True) # Polygons and loops here, not tessfaces. The way we deal with # textures in triangular meshes doesn't apply. @@ -2310,6 +2309,7 @@ def importMesh_Extrusion(geom, ancestry, bpyima): in scaledLoopVertex(mloops[lb + i].vertex_index % nc)] importMesh_ApplyTextureToLoops(bpymesh, bpyima, loops) + bpymesh.validate(True) bpymesh.update() return bpymesh |