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:
authormeta-androcto <meta.androcto1@gmail.com>2019-06-05 04:27:07 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-06-05 04:27:07 +0300
commit91f9d211df3712307abb6402de63349dc2c88451 (patch)
tree2df5da3a8ef0caad4c2a0fa842c29b112da40f14 /add_mesh_extra_objects
parent59c871915d4e58e76811ad21e6d5c1c7a762694a (diff)
add_mesh_teapot: Fix double verts: T65506
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_teapot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/add_mesh_extra_objects/add_mesh_teapot.py b/add_mesh_extra_objects/add_mesh_teapot.py
index 1dabc520..b41a433b 100644
--- a/add_mesh_extra_objects/add_mesh_teapot.py
+++ b/add_mesh_extra_objects/add_mesh_teapot.py
@@ -36,6 +36,9 @@ class AddTeapot(bpy.types.Operator):
self.resolution)
# Actually create the mesh object from this geometry data.
obj = create_mesh_object(context, verts, [], faces, "Teapot")
+ bpy.ops.object.editmode_toggle()
+ bpy.ops.mesh.remove_doubles()
+ bpy.ops.object.editmode_toggle()
return {'FINISHED'}