import computedBrush from ABR

This commit is contained in:
2019-02-24 00:40:22 +01:00
parent 3a1a48a0d0
commit 4d5b64e5bc
3 changed files with 38 additions and 10 deletions

View File

@@ -225,8 +225,7 @@ void CanvasModePen::on_Draw(const glm::mat4& ortho, const glm::mat4& proj, const
const auto& s = Canvas::I->m_current_stroke->m_prev_sample;
if (s.size > 0.f)
{
tip_scale = glm::vec2(brush->m_tip_width, 1.f) *
(brush->m_tip_size * tip_scale_fix) * s.scale;
tip_scale = (brush->m_tip_size * tip_scale_fix) * s.scale;
tip_angle = s.angle;
tip_offset = s.pos - s.origin;
tip_color = glm::vec4(s.col, s.flow);