fix layer delete order bug, fix and improve brush preview during the stroke, fix windows mouse capture (api works only on the main thread)

This commit is contained in:
2018-11-03 23:44:09 +01:00
parent 3ee10bb88d
commit eb1c8d6b7a
6 changed files with 37 additions and 17 deletions

View File

@@ -179,7 +179,7 @@ void App::init_sidebar()
};
layers->on_layer_delete = [this](Node*, int idx) {
canvas->m_canvas->layer_remove(canvas->m_canvas->m_order[idx]);
canvas->m_canvas->layer_remove(idx);
};
layers->on_layer_opacity_changed = [this](Node*, int idx, float value) {