[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34681] trunk/blender: rename ID.update() --> update_tag() since this function only tags for updating and scene. update() executes the update.
Campbell Barton
ideasman42 at gmail.com
Mon Feb 7 09:13:30 CET 2011
Revision: 34681
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34681
Author: campbellbarton
Date: 2011-02-07 08:13:28 +0000 (Mon, 07 Feb 2011)
Log Message:
-----------
rename ID.update() --> update_tag() since this function only tags for updating and scene.update() executes the update.
Modified Paths:
--------------
trunk/blender/release/scripts/op/add_mesh_torus.py
trunk/blender/release/scripts/op/object.py
trunk/blender/release/scripts/op/uvcalc_follow_active.py
trunk/blender/release/scripts/templates/operator_mesh_add.py
trunk/blender/source/blender/makesrna/intern/rna_ID.c
trunk/blender/source/blender/python/intern/bpy_props.c
Modified: trunk/blender/release/scripts/op/add_mesh_torus.py
===================================================================
--- trunk/blender/release/scripts/op/add_mesh_torus.py 2011-02-07 05:05:41 UTC (rev 34680)
+++ trunk/blender/release/scripts/op/add_mesh_torus.py 2011-02-07 08:13:28 UTC (rev 34681)
@@ -129,7 +129,7 @@
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)
Modified: trunk/blender/release/scripts/op/object.py
===================================================================
--- trunk/blender/release/scripts/op/object.py 2011-02-07 05:05:41 UTC (rev 34680)
+++ trunk/blender/release/scripts/op/object.py 2011-02-07 08:13:28 UTC (rev 34681)
@@ -506,7 +506,7 @@
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]
Modified: trunk/blender/release/scripts/op/uvcalc_follow_active.py
===================================================================
--- trunk/blender/release/scripts/op/uvcalc_follow_active.py 2011-02-07 05:05:41 UTC (rev 34680)
+++ trunk/blender/release/scripts/op/uvcalc_follow_active.py 2011-02-07 08:13:28 UTC (rev 34681)
@@ -216,7 +216,7 @@
if is_editmode:
bpy.ops.object.mode_set(mode='EDIT')
else:
- me.update()
+ me.update_tag()
def main(context, operator):
Modified: trunk/blender/release/scripts/templates/operator_mesh_add.py
===================================================================
--- trunk/blender/release/scripts/templates/operator_mesh_add.py 2011-02-07 05:05:41 UTC (rev 34680)
+++ trunk/blender/release/scripts/templates/operator_mesh_add.py 2011-02-07 08:13:28 UTC (rev 34681)
@@ -77,7 +77,7 @@
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
Modified: trunk/blender/source/blender/makesrna/intern/rna_ID.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ID.c 2011-02-07 05:05:41 UTC (rev 34680)
+++ trunk/blender/source/blender/makesrna/intern/rna_ID.c 2011-02-07 08:13:28 UTC (rev 34681)
@@ -250,7 +250,7 @@
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 @@
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.");
Modified: trunk/blender/source/blender/python/intern/bpy_props.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_props.c 2011-02-07 05:05:41 UTC (rev 34680)
+++ trunk/blender/source/blender/python/intern/bpy_props.c 2011-02-07 08:13:28 UTC (rev 34681)
@@ -639,7 +639,7 @@
" :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)
{
More information about the Bf-blender-cvs
mailing list