mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Use duplicate().
This commit is contained in:
parent
1f3ef7782f
commit
ab5b32cedf
@ -608,8 +608,7 @@ void PaintWindow::commit_action() {
|
||||
|
||||
//print("commit action")
|
||||
_current_action->commit_action(paint_canvas);
|
||||
Ref<PaintAction> action = get_action();
|
||||
action->copy_data_from(_current_action);
|
||||
Ref<PaintAction> action = _current_action->duplicate(true);
|
||||
|
||||
_actions_history.push_back(action);
|
||||
_redo_history.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user