import computedBrush from ABR
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user