Also set up layer.

This commit is contained in:
Relintai 2022-06-21 19:11:46 +02:00
parent 8fe7110dc9
commit 10eeb612b0

View File

@ -609,6 +609,7 @@ void PaintWindow::commit_action() {
//print("commit action") //print("commit action")
_current_action->commit_action(paint_canvas); _current_action->commit_action(paint_canvas);
Ref<PaintAction> action = _current_action->duplicate(true); Ref<PaintAction> action = _current_action->duplicate(true);
action->layer = _current_action->layer;
_actions_history.push_back(action); _actions_history.push_back(action);
_redo_history.clear(); _redo_history.clear();