Blender Git Commit Log

Git Commits -> Revision f8cc015

Revision f8cc015 by Alexander Gavrilov (master)
July 21, 2020, 16:01 (GMT)
Drivers: add lerp and clamp functions to namespace.

Implementation of lerp without a function requires repeating one of
the arguments, which is not ideal. To avoid that, add a new function
to the driver namespace. In addition, provide a function for clamping
between 0 and 1 to support easy clamped lerp, and a smoothstep function
from GLSL that is somewhat related.

The function implementations are added to a new bl_math module.
As an aside, add the round function and two-argument log to the
pylike expression subset.

Differential Revision: https://developer.blender.org/D8205

Commit Details:

Full Hash: f8cc01595d1181b9a8adcb6aa930d4cbfebdc8bf
Parent Commit: 8369ada
Lines Changed: +329, -0

2 Added Paths:

/source/blender/python/generic/bl_math_py_api.c (+163, -0) (View)
/source/blender/python/generic/bl_math_py_api.h (+27, -0) (View)

5 Modified Paths:

/source/blender/blenlib/intern/expr_pylike_eval.c (+92, -0) (Diff)
/source/blender/python/generic/CMakeLists.txt (+2, -0) (Diff)
/source/blender/python/intern/bpy_driver.c (+17, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+2, -0) (Diff)
/tests/gtests/blenlib/BLI_expr_pylike_eval_test.cc (+26, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021