rename ID.update() --> update_tag() since this function only tags for updating and scene.update() executes the update.

This commit is contained in:
Campbell Barton
2011-02-07 08:13:28 +00:00
parent ad8c79405a
commit d272b70ee0
6 changed files with 7 additions and 7 deletions

View File

@@ -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)

View File

@@ -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]

View File

@@ -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):

View File

@@ -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

View File

@@ -250,7 +250,7 @@ ID *rna_ID_copy(ID *id)
return NULL;
}
static void rna_ID_update(ID *id, ReportList *reports, int flag)
static void rna_ID_update_tag(ID *id, ReportList *reports, int flag)
{
/* XXX, new function for this! */
/*if (ob->type == OB_FONT) {
@@ -478,7 +478,7 @@ static void rna_def_ID(BlenderRNA *brna)
func= RNA_def_function(srna, "animation_data_clear", "BKE_free_animdata");
RNA_def_function_ui_description(func, "Clear animation on this this ID.");
func= RNA_def_function(srna, "update", "rna_ID_update");
func= RNA_def_function(srna, "update_tag", "rna_ID_update_tag");
RNA_def_function_flag(func, FUNC_USE_REPORTS);
RNA_def_function_ui_description(func, "Tag the id to update its display data.");
RNA_def_enum_flag(func, "refresh", update_flag_items, 0, "", "Type of updates to perform.");

View File

@@ -639,7 +639,7 @@ static char BPy_EnumProperty_doc[] =
" :type default: string or set\n"
" :arg options: Enumerator in ['HIDDEN', 'ANIMATABLE', 'ENUM_FLAG'].\n"
" :type options: set\n"
" :arg items: The items that make up this enumerator.\n"
" :arg items: sequence of enum items formatted: [(identifier, name, description), ...] where the identifier is used for python access and other values are used for the interface.\n"
" :type items: sequence of string triplets";
static PyObject *BPy_EnumProperty(PyObject *self, PyObject *args, PyObject *kw)
{