small fixes
This commit is contained in:
@@ -259,8 +259,8 @@ void App::update(float dt)
|
||||
stroke->update_controls();
|
||||
auto pix = ui::Canvas::I->m_current_brush.m_tip_color;
|
||||
auto hsv = convert_rgb2hsv(glm::vec3(pix[0], pix[1], pix[2]));
|
||||
//color->m_hue->m_value.y = hsv.x;
|
||||
//color->m_quad->m_value = glm::vec2(hsv.y, 1.f - hsv.z);
|
||||
color->m_hue->m_value.y = hsv.x;
|
||||
color->m_quad->m_value = glm::vec2(hsv.y, 1.f - hsv.z);
|
||||
|
||||
auto observer = [this](Node* n)
|
||||
{
|
||||
|
||||
@@ -831,8 +831,8 @@ void ui::Canvas::import_equirectangular_thread(std::string file_path)
|
||||
});
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
m_dirty_box[i] = glm::vec4(0, 0, m_width, m_height);
|
||||
m_dirty_face[i] = true;
|
||||
m_layers[m_current_layer_idx].m_dirty_box[i] = glm::vec4(0, 0, m_width, m_height);
|
||||
m_layers[m_current_layer_idx].m_dirty_face[i] = true;
|
||||
}
|
||||
App::I.async_update();
|
||||
gl.restore();
|
||||
|
||||
Reference in New Issue
Block a user