combobox selected element alignment, brush preview

This commit is contained in:
2019-02-22 02:44:18 +01:00
parent 876c002616
commit cb2b1b5aa2
2 changed files with 4 additions and 2 deletions

View File

@@ -378,7 +378,7 @@ void NodeStrokePreview::draw_stroke()
// copy background color to tex2
ShaderManager::use(kShader::Checkerboard);
ShaderManager::u_int(kShaderUniform::Colorize, b->m_tip_mix > 0.f);
ShaderManager::u_int(kShaderUniform::Colorize, b->m_tip_mix > 0.f || b->m_blend_mode != 0);
float aspect = size.x / size.y;
ShaderManager::u_mat4(kShaderUniform::MVP, glm::ortho(-.5f, .5f, -.5f / aspect, .5f / aspect, -1.f, 1.f));
m_plane.draw_fill();