diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-15 05:31:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-15 05:31:58 +0400 |
commit | 77a15aba38f00cd2694bb7c463057cada0690e50 (patch) | |
tree | f87b867a1c0c334fa44a74615c9e749ceb3974a6 /source/blender/makesrna/intern/rna_access.c | |
parent | 15969fba1f151a370dd2a74d9fa811704ab0eb53 (diff) |
IDProp API: change IDP_NewString so `sizeof()` can be passed in.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 7946d24b83b..a3dee924c0b 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -2594,7 +2594,7 @@ void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *val group = RNA_struct_idprops(ptr, 1); if (group) - IDP_AddToGroup(group, IDP_NewString(value, prop->identifier, RNA_property_string_maxlength(prop) - 1)); + IDP_AddToGroup(group, IDP_NewString(value, prop->identifier, RNA_property_string_maxlength(prop))); } } |