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:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-07-04 13:20:59 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-07-21 19:01:50 +0300
commitf8cc01595d1181b9a8adcb6aa930d4cbfebdc8bf (patch)
tree881dd5079bb2e7d674980a5e80d3ea7d16dd8375 /source/blender/python/generic/CMakeLists.txt
parent8369adabc0ec7a1fce248b688bf20860ae0434bb (diff)
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
Diffstat (limited to 'source/blender/python/generic/CMakeLists.txt')
-rw-r--r--source/blender/python/generic/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/generic/CMakeLists.txt b/source/blender/python/generic/CMakeLists.txt
index 822f05bad90..785c1d66407 100644
--- a/source/blender/python/generic/CMakeLists.txt
+++ b/source/blender/python/generic/CMakeLists.txt
@@ -36,12 +36,14 @@ set(SRC
bpy_threads.c
idprop_py_api.c
imbuf_py_api.c
+ bl_math_py_api.c
py_capi_utils.c
bgl.h
blf_py_api.h
idprop_py_api.h
imbuf_py_api.h
+ bl_math_py_api.h
py_capi_utils.h
# header-only