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>2011-03-14 04:37:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-14 04:37:18 +0300
commitbd1c5d48f23dbb7b7ed344bfa87863cca8247365 (patch)
tree40dfa8c5bc8862335393733a4d8284e846574e08 /source/blender
parent9ec2dfe0df6fe1fe6d89d6569d5da323a0c217b6 (diff)
RNA API Rename
'create' was used as prefix and suffix, change dupli list functions to use as suffix, this matches obj.animation_data_create() & obj.animation_data_clear(). obj.create_dupli_list() --> obj.dupli_list_create() obj.free_dupli_list() --> obj.dupli_list_clear() Don't use 'create' for object to mesh function since other uses of this are for createing data which stays attached, instead use mathutils style naming convention. obj.create_mesh() --> obj.to_mesh()
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_object_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c
index cd3796af435..2d9ea89fa2f 100644
--- a/source/blender/makesrna/intern/rna_object_api.c
+++ b/source/blender/makesrna/intern/rna_object_api.c
@@ -77,7 +77,7 @@
/* copied from Mesh_getFromObject and adapted to RNA interface */
/* settings: 0 - preview, 1 - render */
-static Mesh *rna_Object_create_mesh(Object *ob, ReportList *reports, Scene *sce, int apply_modifiers, int settings)
+static Mesh *rna_Object_to_mesh(Object *ob, ReportList *reports, Scene *sce, int apply_modifiers, int settings)
{
Mesh *tmpmesh;
Curve *tmpcu = NULL;
@@ -435,7 +435,7 @@ void RNA_api_object(StructRNA *srna)
};
/* mesh */
- func= RNA_def_function(srna, "create_mesh", "rna_Object_create_mesh");
+ func= RNA_def_function(srna, "to_mesh", "rna_Object_to_mesh");
RNA_def_function_ui_description(func, "Create a Mesh datablock with modifiers applied.");
RNA_def_function_flag(func, FUNC_USE_REPORTS);
parm= RNA_def_pointer(func, "scene", "Scene", "", "Scene within which to evaluate modifiers.");
@@ -448,13 +448,13 @@ void RNA_api_object(StructRNA *srna)
RNA_def_function_return(func, parm);
/* duplis */
- func= RNA_def_function(srna, "create_dupli_list", "rna_Object_create_duplilist");
+ func= RNA_def_function(srna, "dupli_list_create", "rna_Object_create_duplilist");
RNA_def_function_ui_description(func, "Create a list of dupli objects for this object, needs to be freed manually with free_dupli_list to restore the objects real matrix and layers.");
parm= RNA_def_pointer(func, "scene", "Scene", "", "Scene within which to evaluate duplis.");
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
RNA_def_function_flag(func, FUNC_USE_REPORTS);
- func= RNA_def_function(srna, "free_dupli_list", "rna_Object_free_duplilist");
+ func= RNA_def_function(srna, "dupli_list_clear", "rna_Object_free_duplilist");
RNA_def_function_ui_description(func, "Free the list of dupli objects.");
/* Armature */