diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-04-24 02:08:18 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-04-24 02:08:18 +0400 |
commit | bd860f89e75a10cae56be31f97fcd6aa9eb13b8e (patch) | |
tree | 4ad82db39475b754b9bb4c1c439033ce46e0c62e /source/blender/makesrna/intern/rna_ID.c | |
parent | 2497af95a11122e6c30d42dd7bff5d8f239269ac (diff) | |
parent | 040a049fb17af2e690219ec7f48f601a6d2189c4 (diff) |
Merged changes in the trunk up to revision 36301.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index 6905cac43e5..e2c25972bdf 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -446,7 +446,7 @@ static void rna_def_ID(BlenderRNA *brna) prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); RNA_def_property_ui_text(prop, "Name", "Unique datablock ID name"); RNA_def_property_string_funcs(prop, "rna_ID_name_get", "rna_ID_name_length", "rna_ID_name_set"); - RNA_def_property_string_maxlength(prop, sizeof(((ID*)NULL)->name)-2); + RNA_def_property_string_maxlength(prop, MAX_ID_NAME-2); RNA_def_property_editable_func(prop, "rna_ID_name_editable"); RNA_def_property_update(prop, NC_ID|NA_RENAME, NULL); RNA_def_struct_name_property(srna, prop); |