fix color picker

This commit is contained in:
2018-03-08 22:36:12 +01:00
parent 0bdb879e76
commit 485c0ee933
4 changed files with 13 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ void NodePanelColor::set_color(glm::vec3 rgb)
m_quad->m_value = glm::vec2(hsv.y, 1.f - hsv.z);
m_quad->m_color = glm::vec4(rgb, 1);
m_cursor = m_quad->m_value;
m_base_color = glm::vec4(rgb, 1);
}
void NodePanelColor::added(Node* parent)