Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/defaultpaintops/brush/kis_brushop.cpp
Context not available. | |||||
171 | info); | 171 | info); | ||
---|---|---|---|---|---|
172 | } | 172 | } | ||
173 | 173 | | |||
174 | KisSpacingInformation KisBrushOp::updateSpacingImpl(const KisPaintInformation &info) const | ||||
175 | { | ||||
176 | const qreal scale = m_sizeOption.apply(info) * KisLodTransform::lodToScale(painter()->device()); | ||||
177 | qreal rotation = m_rotationOption.apply(info); | ||||
178 | return effectiveSpacing(scale, rotation, &m_airbrushOption, &m_spacingOption, &m_rateOption, | ||||
179 | info); | ||||
180 | } | ||||
181 | | ||||
174 | void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance) | 182 | void KisBrushOp::paintLine(const KisPaintInformation& pi1, const KisPaintInformation& pi2, KisDistanceInformation *currentDistance) | ||
175 | { | 183 | { | ||
176 | if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) { | 184 | if (m_sharpnessOption.isChecked() && m_brush && (m_brush->width() == 1) && (m_brush->height() == 1)) { | ||
Context not available. |