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.
This commit is contained in:
2012-01-24 22:15:25 +00:00
parent fb1fba1454
commit 1aadbdedc7
2 changed files with 2 additions and 2 deletions

View File

@@ -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 */