Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/tangentnormal/kis_tangent_normal_paintop.cpp
Context not available. | |||||
167 | painter()->setOpacity(oldOpacity); | 167 | painter()->setOpacity(oldOpacity); | ||
---|---|---|---|---|---|
168 | painter()->setCompositeOp(oldCompositeOpId); | 168 | painter()->setCompositeOp(oldCompositeOpId); | ||
169 | 169 | | |||
170 | return computeSpacing(info, scale, rotation); | ||||
171 | } | ||||
172 | | ||||
173 | KisSpacingInformation KisTangentNormalPaintOp::updateSpacingImpl(const KisPaintInformation &info) const | ||||
174 | { | ||||
175 | qreal scale = m_sizeOption.apply(info) * KisLodTransform::lodToScale(painter()->device()); | ||||
176 | qreal rotation = m_rotationOption.apply(info); | ||||
177 | return computeSpacing(info, scale, rotation); | ||||
178 | } | ||||
179 | | ||||
180 | KisSpacingInformation KisTangentNormalPaintOp::computeSpacing(const KisPaintInformation &info, | ||||
181 | qreal scale, qreal rotation) const | ||||
182 | { | ||||
170 | return effectiveSpacing(scale, rotation, &m_airbrushOption, &m_spacingOption, &m_rateOption, | 183 | return effectiveSpacing(scale, rotation, &m_airbrushOption, &m_spacingOption, &m_rateOption, | ||
171 | info); | 184 | info); | ||
172 | } | 185 | } | ||
Context not available. |