fix stroke preview mixer render, add curve to mixer slider
This commit is contained in:
@@ -32,6 +32,7 @@ void NodePanelStroke::update_controls()
|
||||
m_tip_opacity->m_value = b->m_tip_opacity;
|
||||
m_tip_angle->m_value = b->m_tip_angle;
|
||||
m_tip_angle_smooth->m_value = b->m_tip_angle_smooth;
|
||||
m_tip_mix->m_value = m_curves[m_tip_mix].to_slider(b->m_tip_mix);
|
||||
m_tip_wet->m_value = b->m_tip_wet;
|
||||
m_tip_noise->m_value = b->m_tip_noise;
|
||||
m_jitter_scale->m_value = b->m_jitter_scale;
|
||||
@@ -405,6 +406,10 @@ void NodePanelStroke::init_controls()
|
||||
[](float v) { return glm::pow(v, 2.f); },
|
||||
[](float v) { return glm::pow(v, 1.f / 2.f); },
|
||||
};
|
||||
SliderCurve curve_mix {
|
||||
[](float v) { return glm::pow(v, 1.f / 10.f); },
|
||||
[](float v) { return glm::pow(v, 10.f); },
|
||||
};
|
||||
SliderCurve curve_linear1k_perc {
|
||||
[](float v) { return v * 10.f; },
|
||||
[](float v) { return v * 0.1f; },
|
||||
@@ -459,6 +464,7 @@ void NodePanelStroke::init_controls()
|
||||
m_curves[m_dual_flow] = curve_quad;
|
||||
m_curves[m_pattern_scale] = curve_size1k_perc;
|
||||
m_curves[m_jitter_scatter] = curve_linear1k_perc;
|
||||
m_curves[m_tip_mix] = curve_mix;
|
||||
|
||||
m_tip_aspect_reset = find<NodeButtonCustom>("tip-aspect-reset");
|
||||
m_tip_aspect_reset->on_click = [this](Node*) {
|
||||
|
||||
Reference in New Issue
Block a user