diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2019-09-27 17:33:48 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-09-27 18:02:39 +0300 |
commit | b22afef72c5cab001b7458defc3d042742803b9d (patch) | |
tree | 65fe64463c91008ab36d2d180679c453f262842b /source/blender/makesrna/intern/rna_animation.c | |
parent | 3c7707b49fc634f4850c1b3f0e3a439a91bde891 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_animation.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_animation.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_animation.c b/source/blender/makesrna/intern/rna_animation.c index 6157ec41f19..e1a24326474 100644 --- a/source/blender/makesrna/intern/rna_animation.c +++ b/source/blender/makesrna/intern/rna_animation.c @@ -668,8 +668,7 @@ static FCurve *rna_Driver_new( return NULL; } - short add_mode = 1; - FCurve *fcu = verify_driver_fcurve(id, rna_path, array_index, add_mode); + FCurve *fcu = verify_driver_fcurve(id, rna_path, array_index, DRIVER_FCURVE_KEYFRAMES); BLI_assert(fcu != NULL); DEG_relations_tag_update(bmain); |