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:
authorThomas Larsson <thomas_larsson_01@hotmail.com>2011-12-13 05:28:02 +0400
committerThomas Larsson <thomas_larsson_01@hotmail.com>2011-12-13 05:28:02 +0400
commit8601d60557f563d417d9ca8def19d24007bb42ca (patch)
tree8595c76cc985f44c12baf7c4991c8b3bbd593d3d
parent9f7da477fadfb26675971d8e2dcf4e6ccd82fd9b (diff)
MHX importer: now deletes all helper geometry, not just diamonds.v2.61
-rw-r--r--io_import_scene_mhx.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py
index baa1e2ba..159fc77e 100644
--- a/io_import_scene_mhx.py
+++ b/io_import_scene_mhx.py
@@ -2053,19 +2053,20 @@ def postProcess(args):
#
# deleteDiamonds(ob)
# Delete joint diamonds in main mesh
+# Invisio = material # 1
#
def deleteDiamonds(ob):
bpy.context.scene.objects.active = ob
if not bpy.context.object:
return
- print("Delete diamonds in %s" % bpy.context.object)
+ print("Delete helper geometry in %s" % bpy.context.object)
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.select_all(action='DESELECT')
bpy.ops.object.mode_set(mode='OBJECT')
me = ob.data
- for f in me.faces:
- if len(f.vertices) < 4:
+ for f in me.faces:
+ if f.material_index == 1:
for vn in f.vertices:
me.vertices[vn].select = True
bpy.ops.object.mode_set(mode='EDIT')
@@ -2852,7 +2853,7 @@ MhxBoolProps = [
("face", "Face shapes", "Include facial shapekeys", T_Face),
("shape", "Body shapes", "Include body shapekeys", T_Shape),
("symm", "Symmetric shapes", "Keep shapekeys symmetric", T_Symm),
- ("diamond", "Diamonds", "Keep joint diamonds", T_Diamond),
+ ("diamond", "Helper geometry", "Keep helper geometry", T_Diamond),
("rigify", "Rigify", "Create rigify control rig", T_Rigify),
]