diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-07 11:13:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-07 11:13:28 +0300 |
commit | d272b70ee09be8c949247404c9324cfffc833976 (patch) | |
tree | 28a9339ba56e77cebae3ddc61815f1437e34b465 /release | |
parent | ad8c79405ac053bafea606ee954c4324d066d5fa (diff) |
rename ID.update() --> update_tag() since this function only tags for updating and scene.update() executes the update.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/op/add_mesh_torus.py | 2 | ||||
-rw-r--r-- | release/scripts/op/object.py | 2 | ||||
-rw-r--r-- | release/scripts/op/uvcalc_follow_active.py | 2 | ||||
-rw-r--r-- | release/scripts/templates/operator_mesh_add.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/op/add_mesh_torus.py b/release/scripts/op/add_mesh_torus.py index 53460ff264d..aac4c36da83 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() + mesh.update_tag() import add_object_utils add_object_utils.object_data_add(context, mesh, operator=self) diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py index 8fee6e2166d..688839e3d2c 100644 --- a/release/scripts/op/object.py +++ b/release/scripts/op/object.py @@ -506,7 +506,7 @@ class MakeDupliFace(bpy.types.Operator): mesh.vertices.foreach_set("co", face_verts) mesh.faces.foreach_set("vertices_raw", faces) - mesh.update() # generates edge data + mesh.update_tag() # generates edge data # pick an object to use obj = objects[0] diff --git a/release/scripts/op/uvcalc_follow_active.py b/release/scripts/op/uvcalc_follow_active.py index 10b40aa4538..a226e234f3a 100644 --- a/release/scripts/op/uvcalc_follow_active.py +++ b/release/scripts/op/uvcalc_follow_active.py @@ -216,7 +216,7 @@ def extend(obj, operator, EXTEND_MODE): if is_editmode: bpy.ops.object.mode_set(mode='EDIT') else: - me.update() + me.update_tag() def main(context, operator): diff --git a/release/scripts/templates/operator_mesh_add.py b/release/scripts/templates/operator_mesh_add.py index db614f3a74c..856a54f8f33 100644 --- a/release/scripts/templates/operator_mesh_add.py +++ b/release/scripts/templates/operator_mesh_add.py @@ -77,7 +77,7 @@ class AddBox(bpy.types.Operator): mesh.vertices.foreach_set("co", verts_loc) mesh.faces.foreach_set("vertices_raw", faces) - mesh.update() + mesh.update_tag() # add the mesh as an object into the scene with this utility module import add_object_utils |