From b22afef72c5cab001b7458defc3d042742803b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 27 Sep 2019 16:33:48 +0200 Subject: Cleanup: Replace 'add mode' short for driver FCurve creation with an enum The 'add mode' was a `short` between -1 and 2 inclusive, and magic numbers sprinkled throughout the code. It's now an enum with descriptive names. No functional changes. --- source/blender/editors/interface/interface_anim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/interface/interface_anim.c') diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c index 168c6051327..c8baa1a7c7b 100644 --- a/source/blender/editors/interface/interface_anim.c +++ b/source/blender/editors/interface/interface_anim.c @@ -243,7 +243,7 @@ bool ui_but_anim_expression_create(uiBut *but, const char *str) } /* create driver */ - fcu = verify_driver_fcurve(id, path, but->rnaindex, 1); + fcu = verify_driver_fcurve(id, path, but->rnaindex, DRIVER_FCURVE_KEYFRAMES); if (fcu) { ChannelDriver *driver = fcu->driver; -- cgit v1.2.3