fix own recent error [#25977] Torus disappears when adding "Subdivision Surface"

ID's and meshes both have update functions, call the meshes rather then update_tag() for recalculating edges.
This commit is contained in:
Campbell Barton 2011-02-08 11:20:19 +00:00
parent e511f9fac4
commit cd95dd42d7

@ -129,7 +129,7 @@ class AddTorus(bpy.types.Operator):
mesh.vertices.foreach_set("co", verts_loc) mesh.vertices.foreach_set("co", verts_loc)
mesh.faces.foreach_set("vertices_raw", faces) mesh.faces.foreach_set("vertices_raw", faces)
mesh.update_tag() mesh.update()
import add_object_utils import add_object_utils
add_object_utils.object_data_add(context, mesh, operator=self) add_object_utils.object_data_add(context, mesh, operator=self)