Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/deform/kis_deform_paintop.cpp
Context not available. | |||||
135 | 135 | | |||
---|---|---|---|---|---|
136 | // this happens for the first dab of the move mode, we need more information for being able to move | 136 | // this happens for the first dab of the move mode, we need more information for being able to move | ||
137 | if (!mask) { | 137 | if (!mask) { | ||
138 | return KisSpacingInformation(m_spacing); | 138 | return updateSpacingImpl(info); | ||
139 | } | 139 | } | ||
140 | 140 | | |||
141 | quint8 origOpacity = m_opacityOption.apply(painter(), info); | 141 | quint8 origOpacity = m_opacityOption.apply(painter(), info); | ||
Context not available. | |||||
143 | painter()->renderMirrorMask(QRect(QPoint(x, y), QSize(mask->bounds().width() , mask->bounds().height())), dab, mask); | 143 | painter()->renderMirrorMask(QRect(QPoint(x, y), QSize(mask->bounds().width() , mask->bounds().height())), dab, mask); | ||
144 | painter()->setOpacity(origOpacity); | 144 | painter()->setOpacity(origOpacity); | ||
145 | 145 | | |||
146 | return updateSpacingImpl(info); | ||||
147 | } | ||||
148 | | ||||
149 | KisSpacingInformation KisDeformPaintOp::updateSpacingImpl(const KisPaintInformation &info) const | ||||
150 | { | ||||
146 | return KisPaintOpPluginUtils::effectiveSpacing(1.0, 1.0, true, 0.0, false, m_spacing, false, | 151 | return KisPaintOpPluginUtils::effectiveSpacing(1.0, 1.0, true, 0.0, false, m_spacing, false, | ||
147 | 1.0, | 152 | 1.0, | ||
148 | KisLodTransform::lodToScale(painter()->device()), | 153 | KisLodTransform::lodToScale(painter()->device()), | ||
149 | &m_airbrushOption, nullptr, &m_rateOption, info); | 154 | &m_airbrushOption, nullptr, &m_rateOption, info); | ||
150 | } | 155 | } | ||
151 | 156 | | |||
152 | | ||||
153 | | ||||
Context not available. |