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>2012-01-25 02:15:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-25 02:15:25 +0400
commit1aadbdedc748c1bc63b1ffa25793858a06c4ba21 (patch)
tree973838f87e44a2e5f2bc112743be2e601212a56d /source/blender/makesrna/intern/rna_object_api.c
parentfb1fba1454765f746df93cffc2ec6e3e2d9ff3bc (diff)
found a bug by accident.
- bugfix for setting string defaults in rna functions (incorrect pointer use and would copy past string length). - Object.dm_info was setting a default when it didnt need to.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_object_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c
index 0246e22d928..188ccccbfc4 100644
--- a/source/blender/makesrna/intern/rna_object_api.c
+++ b/source/blender/makesrna/intern/rna_object_api.c
@@ -643,7 +643,7 @@ void RNA_api_object(StructRNA *srna)
parm= RNA_def_enum(func, "type", mesh_dm_info_items, 0, "", "Modifier settings to apply");
RNA_def_property_flag(parm, PROP_REQUIRED);
/* weak!, no way to return dynamic string type */
- parm= RNA_def_string(func, "result", "result", 16384, "result", "");
+ parm= RNA_def_string(func, "result", "", 16384, "result", "");
RNA_def_property_flag(parm, PROP_THICK_WRAP); /* needed for string return value */
RNA_def_function_output(func, parm);
#endif /* NDEBUG */