diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-26 06:10:46 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-26 06:11:34 +0300 |
commit | 6944228027f12bf9dfca5e123597bfae8eb3a675 (patch) | |
tree | 3a07bd9b3890797a3efec206abc6311cc2ba4115 /source | |
parent | 6618a19fa90eb4c9e50b85f087efcf8a4ec372ad (diff) |
Fix T62946: function abs() not working in driver expressions.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/expr_pylike_eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c index d0027c63c4b..cd5b43fc224 100644 --- a/source/blender/blenlib/intern/expr_pylike_eval.c +++ b/source/blender/blenlib/intern/expr_pylike_eval.c @@ -360,8 +360,8 @@ typedef struct BuiltinOpDef { static BuiltinOpDef builtin_ops[] = { { "radians", OPCODE_FUNC1, op_radians }, { "degrees", OPCODE_FUNC1, op_degrees }, - { "abs", OPCODE_FUNC1, abs }, - { "fabs", OPCODE_FUNC1, abs }, + { "abs", OPCODE_FUNC1, fabs }, + { "fabs", OPCODE_FUNC1, fabs }, { "floor", OPCODE_FUNC1, floor }, { "ceil", OPCODE_FUNC1, ceil }, { "trunc", OPCODE_FUNC1, trunc }, |