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:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-12-11 19:42:39 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-12-11 19:42:39 +0400
commit2a426d3eff56310617cdd7ebcf11ec8eb5fccaea (patch)
tree47fb01b0cfe26b8898d6a61779b0868760532adf /source/blender
parent2da7066caa23c9376f8260e96c08bf4bf13f2c72 (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')
-rw-r--r--source/blender/makesrna/intern/rna_access.c2
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