diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-11 19:42:39 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-11 19:42:39 +0400 |
commit | 2a426d3eff56310617cdd7ebcf11ec8eb5fccaea (patch) | |
tree | 47fb01b0cfe26b8898d6a61779b0868760532adf /source/blender/makesrna | |
parent | 2da7066caa23c9376f8260e96c08bf4bf13f2c72 (diff) |
Fix #29574: Strange crash using translated Blender
Description can be NULL for properties like enum items. Just added NULL-check here
Diffstat (limited to 'source/blender/makesrna')
-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 a31984dfc29..02b1fa300fb 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -469,7 +469,7 @@ static const char *rna_ensure_property_description(PropertyRNA *prop) } #ifdef WITH_INTERNATIONAL - if((U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_TOOLTIPS)) + if(description && (U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_TOOLTIPS)) description= BLF_gettext(description); #endif |