init brush settings at startup

This commit is contained in:
2017-09-30 22:45:35 +01:00
parent 4b49772af8
commit ccde247f2a
4 changed files with 26 additions and 13 deletions

View File

@@ -493,6 +493,18 @@ void App::initLayout()
init_menu_edit();
init_menu_layer();
Brush b;
b.m_tex_id = brushes->get_texture_id(0);
b.id = brushes->get_brush_id(0);
b.m_tip_size = .1f;
b.m_tip_flow = .5f;
b.m_tip_spacing = .1f;
b.m_tip_opacity = 1.f;
stroke->m_canvas->m_brush = b;
canvas->m_brush = b;
brush_update();
// hacky thing to make the toolbar buttons not steal events when moving cursor fast
if (auto* toolbar = layout[main_id]->find<Node>("toolbar"))
toolbar->m_flood_events = true;