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:
authorJeroen Bakker <jeroen@blender.org>2019-12-17 14:38:12 +0300
committerJeroen Bakker <jeroen@blender.org>2019-12-18 13:00:50 +0300
commit8bab8655393faf51a2a7ee3b267a745b38fc49e5 (patch)
tree150776a184502257cb50be1de27cb7b3b97f1c49 /release
parent2a35383bb0b49dd7a7ee0c507ec012372587f6e5 (diff)
Fix T72289: FreeStyle python error
Introduced by {T67981}. We changed the python API for curve evaluation. Freestyle still used the old call that failed. This patch updates FreeStyle to use the new API. I checked other areas in freestyle but it seemed to be the only `evaluate` for curves that is called directly. Reviewed By: zeddb Differential Revision: https://developer.blender.org/D6430
Diffstat (limited to 'release')
-rw-r--r--release/scripts/freestyle/modules/parameter_editor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/freestyle/modules/parameter_editor.py b/release/scripts/freestyle/modules/parameter_editor.py
index e74b61ced94..534ee7d65be 100644
--- a/release/scripts/freestyle/modules/parameter_editor.py
+++ b/release/scripts/freestyle/modules/parameter_editor.py
@@ -188,7 +188,7 @@ class CurveMappingModifier(ScalarBlendModifier):
# deprecated: return evaluateCurveMappingF(self.curve, 0, t)
curve = self.curve
curve.initialize()
- result = curve.curves[0].evaluate(t)
+ result = curve.evaluate(curve=curve.curves[0], position=t)
# float precision errors in t can give a very weird result for evaluate.
# therefore, bound the result by the curve's min and max values
return bound(curve.clip_min_y, result, curve.clip_max_y)