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