diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-21 10:33:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-21 10:33:48 +0400 |
commit | d203edfc9384f8632fce122dc8313a4745799a86 (patch) | |
tree | 8d92ee8bee94f4e0a765f41e3190ff3a49586791 | |
parent | 238a6149af6b18b198a02152ee28a89c83b13af2 (diff) |
Fix T40291: Crash when adding # driver to some fields
-rw-r--r-- | source/blender/editors/interface/interface_anim.c | 3 |
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); |