[Bf-blender-cvs] [a50955e] master: Minor edits of python class documentation (regarding ID tagging)

Gaia Clary noreply at git.blender.org
Mon Apr 13 13:23:11 CEST 2015


Commit: a50955ee0f6c45c613ae9d1e66b1d3cd48e6ff2c
Author: Gaia Clary
Date:   Mon Apr 13 13:22:40 2015 +0200
Branches: master
https://developer.blender.org/rBa50955ee0f6c45c613ae9d1e66b1d3cd48e6ff2c

Minor edits of python class documentation (regarding ID tagging)

===================================================================

M	source/blender/makesrna/intern/rna_ID.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index 8632467..34ef4cc 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -566,7 +566,7 @@ static void rna_def_ID(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "tag", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", LIB_DOIT);
 	RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
-	RNA_def_property_ui_text(prop, "Tag", "Tools can use this to tag data (initial state is undefined)");
+	RNA_def_property_ui_text(prop, "Tag", "Tools can use this to tag data for their own purposes (initial state is undefined).");
 
 	prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", LIB_ID_RECALC);
@@ -608,7 +608,7 @@ static void rna_def_ID(BlenderRNA *brna)
 
 	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_function_ui_description(func, "Tag the ID to update its display data, e.g. when calling :class:`bpy.types.Scene.update`");
 	RNA_def_enum_flag(func, "refresh", update_flag_items, 0, "", "Type of updates to perform");
 }




More information about the Bf-blender-cvs mailing list