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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-26 06:10:46 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-26 06:11:34 +0300
commit6944228027f12bf9dfca5e123597bfae8eb3a675 (patch)
tree3a07bd9b3890797a3efec206abc6311cc2ba4115 /source/blender/blenlib/intern/expr_pylike_eval.c
parent6618a19fa90eb4c9e50b85f087efcf8a4ec372ad (diff)
Fix T62946: function abs() not working in driver expressions.
Diffstat (limited to 'source/blender/blenlib/intern/expr_pylike_eval.c')
-rw-r--r--source/blender/blenlib/intern/expr_pylike_eval.c4
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 },