diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-08 14:20:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-08 14:20:19 +0300 |
commit | cd95dd42d7d8ee6eecde8e08cf406f6fa55f66c3 (patch) | |
tree | ad8cf7d6fe96461208205a19547fb3ffc7b8ff5f /release/scripts/op | |
parent | e511f9fac4f0d8ef9f596fbbddd7c4fc1158b947 (diff) |
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.
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/add_mesh_torus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/op/add_mesh_torus.py b/release/scripts/op/add_mesh_torus.py index aac4c36da83..53460ff264d 100644 --- a/release/scripts/op/add_mesh_torus.py +++ b/release/scripts/op/add_mesh_torus.py @@ -129,7 +129,7 @@ class AddTorus(bpy.types.Operator): mesh.vertices.foreach_set("co", verts_loc) mesh.faces.foreach_set("vertices_raw", faces) - mesh.update_tag() + mesh.update() import add_object_utils add_object_utils.object_data_add(context, mesh, operator=self) |