Merge duplicate vertices

master
pgsocks 3 months ago
parent e4556e5f0e
commit a73a114b89

@ -158,6 +158,14 @@ def load(operator, context, scale = 1.0, filepath = "", global_matrix = None, us
bpy.context.collection.objects.link(obj) bpy.context.collection.objects.link(obj)
bpy.context.view_layer.objects.active = obj bpy.context.view_layer.objects.active = obj
# Remove duplicate vertices
pop_mode = obj.mode
bpy.ops.object.mode_set(mode='EDIT')
bpy.ops.mesh.select_all(action='SELECT')
bpy.ops.mesh.remove_doubles(threshold=0.0)
bpy.ops.mesh.select_all(action='DESELECT')
bpy.ops.object.mode_set(mode=pop_mode)
#Try and attach it to the armature. #Try and attach it to the armature.
if armature != None: if armature != None:
bone_name = geo_model.getBoneRoot() bone_name = geo_model.getBoneRoot()

Loading…
Cancel
Save