small fixes

This commit is contained in:
2017-12-13 01:26:13 +00:00
parent f4cd7fdc62
commit 0d7217af7b
2 changed files with 4 additions and 4 deletions

View File

@@ -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();