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:
authorCampbell Barton <ideasman42@gmail.com>2014-05-21 10:33:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-21 10:33:48 +0400
commitd203edfc9384f8632fce122dc8313a4745799a86 (patch)
tree8d92ee8bee94f4e0a765f41e3190ff3a49586791 /source/blender/editors/interface/interface_anim.c
parent238a6149af6b18b198a02152ee28a89c83b13af2 (diff)
Fix T40291: Crash when adding # driver to some fields
Diffstat (limited to 'source/blender/editors/interface/interface_anim.c')
-rw-r--r--source/blender/editors/interface/interface_anim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c
index f0f08358013..fa0832b6273 100644
--- a/source/blender/editors/interface/interface_anim.c
+++ b/source/blender/editors/interface/interface_anim.c
@@ -172,6 +172,9 @@ bool ui_but_anim_expression_create(uiBut *but, const char *str)
/* get path */
path = RNA_path_from_ID_to_property(&but->rnapoin, but->rnaprop);
+ if (path == NULL) {
+ return false;
+ }
/* create driver */
fcu = verify_driver_fcurve(id, path, but->rnaindex, 1);