implement blend mode selection in shader and fix alpha lock
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user