remove unused test code, fix presets panel height on high dp, update quick panel on alt+rdrag resize

This commit is contained in:
2019-03-12 14:52:58 +01:00
parent 89cd70fc9a
commit 0c71feedf7
3 changed files with 2 additions and 24 deletions

View File

@@ -190,8 +190,7 @@ void CanvasModePen::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
auto diff = m_cur_pos - m_size_pos_start;
auto curve = App::I.stroke->m_curves[App::I.stroke->m_tip_size];
Canvas::I->m_current_brush->m_tip_size = glm::max(curve.to_value(m_size_value_start + diff.x * 0.001f), 0.001f);
if (App::I.stroke)
App::I.stroke->update_controls();
App::I.brush_update();
}
m_cur_pos = loc;
break;