Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-11 20:12:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-11 20:12:48 +0300
commitf356ea764d46a922065660f66c1d1b4e676638ea (patch)
treed663a4cd07c73f5306329d5db0ccda71c20f40ca /source/blender/makesrna/intern/rna_fcurve_api.c
parentbc6190f3e370d21aff0bd9d96fd43d92382c6466 (diff)
- use double underscores to hide members in python (removes them from dir() therefor autocomp.)
- collection functions rename eg. bones_active -> bones__active, add_object -> objects__add since these should be accessed from the collections only. - fix warnings in last commit
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_fcurve_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve_api.c b/source/blender/makesrna/intern/rna_fcurve_api.c
index 12ffb3e26fb..0abb5e8e499 100644
--- a/source/blender/makesrna/intern/rna_fcurve_api.c
+++ b/source/blender/makesrna/intern/rna_fcurve_api.c
@@ -71,7 +71,7 @@ void RNA_api_drivers(StructRNA *srna)
PropertyRNA *parm;
/* add target */
- func= RNA_def_function(srna, "add_target", "rna_Driver_add_target");
+ func= RNA_def_function(srna, "targets__add", "rna_Driver_add_target");
RNA_def_function_ui_description(func, "Add a new target for the driver.");
/* return type */
parm= RNA_def_pointer(func, "target", "DriverTarget", "", "Newly created Driver Target.");
@@ -80,7 +80,7 @@ void RNA_api_drivers(StructRNA *srna)
parm= RNA_def_string(func, "name", "", 64, "Name", "Name to use in scripted expressions/functions. (No spaces or dots are allowed. Also, must not start with a symbol or digit)");
/* remove target */
- func= RNA_def_function(srna, "remove_target", "rna_Driver_remove_target");
+ func= RNA_def_function(srna, "targets__remove", "rna_Driver_remove_target");
RNA_def_function_ui_description(func, "Remove an existing target from the driver.");
/* target to remove*/
parm= RNA_def_pointer(func, "target", "DriverTarget", "", "Target to remove from the driver.");