1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 06:15:10 +03:00

Re #1783: NOT curves exported incorrectly (for non ARM platforms)

This commit is contained in:
Damjan Adamic 2014-11-03 22:01:58 +01:00 committed by bsongis
parent 1c053a7d0b
commit 525d956935

View file

@ -1030,7 +1030,12 @@ class MixField: public TransformedField {
_destCh = mix.destCh - 1;
if (mix.curve.type == CurveReference::CURVE_REF_CUSTOM) {
_curveMode = true;
_curveParam = 6 + mix.curve.value;
if (mix.curve.value > 0) {
_curveParam = 6 + mix.curve.value;
}
else {
_curveParam = mix.curve.value;
}
}
else if (mix.curve.type == CurveReference::CURVE_REF_FUNC) {
_curveMode = true;