Fix T64164: Resetting a curvemap could result in a mirrored curve
authorPhilipp Oeser <info@graphics-engineer.com>
Mon, 6 May 2019 11:03:23 +0000 (13:03 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Mon, 6 May 2019 11:44:22 +0000 (13:44 +0200)
commite9160eae95032d1be5c224ce450d6f7699767094
treebb1719c04204a535a7ff53a26655a650fbec4f1f
parentd7ffb5cb0b9b44ffe4f005a8f9c89527d092cfef
Fix T64164: Resetting a curvemap could result in a mirrored curve

A template_curve_mapping with brush=True was always resetting the curve
to a positive slope (descending from left to right).
Behaviour is now changed so that specifying "use_negative_slope" is
taken into account as well.

Also use this for:
- paint "cavity_curve"
- gpencil "curve_sensitivity" / "curve_strength" / "curve_jitter" /
"interpolation_curve"

Reviewers: brecht

Maniphest Tasks: T64164

Differential Revision: https://developer.blender.org/D4809
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/editors/interface/interface_templates.c