implement blend mode selection in shader and fix alpha lock

This commit is contained in:
2017-11-12 03:27:28 +00:00
parent daaa7f9d48
commit 5dccd61160
10 changed files with 27 additions and 7 deletions

View File

@@ -43,6 +43,10 @@ void NodePanelStroke::update_controls()
void NodePanelStroke::init_controls()
{
m_preview = find<NodeStrokePreview>("canvas");
m_blend_mode = find<NodeComboBox>("blend-mode");
m_blend_mode->on_select = [](Node*, int index) {
ui::Canvas::I->m_current_brush.m_blend_mode = index;
};
init_slider(m_tip_size, "tip-size", &ui::Brush::m_tip_size);
init_slider(m_tip_spacing, "tip-spacing", &ui::Brush::m_tip_spacing);