Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/libpaintop/kis_curve_option.cpp
Show First 20 Lines • Show All 324 Lines • ▼ Show 20 Line(s) | 324 | { | |||
---|---|---|---|---|---|
325 | m_value = qBound(m_minValue, value, m_maxValue); | 325 | m_value = qBound(m_minValue, value, m_maxValue); | ||
326 | } | 326 | } | ||
327 | 327 | | |||
328 | KisCurveOption::ValueComponents KisCurveOption::computeValueComponents(const KisPaintInformation& info) const | 328 | KisCurveOption::ValueComponents KisCurveOption::computeValueComponents(const KisPaintInformation& info) const | ||
329 | { | 329 | { | ||
330 | ValueComponents components; | 330 | ValueComponents components; | ||
331 | 331 | | |||
332 | if (m_useCurve) { | 332 | if (m_useCurve) { | ||
333 | QVector<KisDynamicSensorSP> additiveSensors; | | |||
334 | | ||||
335 | Q_FOREACH (KisDynamicSensorSP s, m_sensorMap.values()) { | 333 | Q_FOREACH (KisDynamicSensorSP s, m_sensorMap.values()) { | ||
336 | if (s->isActive()) { | 334 | if (s->isActive()) { | ||
337 | if (s->isAdditive()) { | 335 | if (s->isAdditive()) { | ||
338 | components.additive += s->parameter(info); | 336 | components.additive += s->parameter(info); | ||
339 | components.hasAdditive = true; | 337 | components.hasAdditive = true; | ||
340 | } else if (s->isAbsoluteRotation()) { | 338 | } else if (s->isAbsoluteRotation()) { | ||
341 | components.absoluteOffset = s->parameter(info); | 339 | components.absoluteOffset = s->parameter(info); | ||
342 | components.hasAbsoluteOffset =true; | 340 | components.hasAbsoluteOffset =true; | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |