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:
authorSeva Alekseyev <sevaa@nih.gov>2015-10-23 19:57:56 +0300
committerSeva Alekseyev <sevaa@nih.gov>2015-10-23 19:57:56 +0300
commit074bb39f3f6c29625ac834d4851905c095ad218c (patch)
tree1fc30654cc56392ca601a0c20184cb68ad5e8a04 /io_scene_x3d
parent4b870b9fc3c3c9dee0e99b9033641caa5878af65 (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.
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/import_x3d.py2
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