From dc4ded8bd8cb9fa1c64c29c11e76b28dc1516a13 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 18 Nov 2022 23:50:05 +0100 Subject: [PATCH] Now the undo and redo buttons in PaintToolsPropertyInspector actually work. --- .../ui/property_inspectors/paint_tools_property_inspector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paint/ui/property_inspectors/paint_tools_property_inspector.cpp b/modules/paint/ui/property_inspectors/paint_tools_property_inspector.cpp index 4835b4181..f094beca7 100644 --- a/modules/paint/ui/property_inspectors/paint_tools_property_inspector.cpp +++ b/modules/paint/ui/property_inspectors/paint_tools_property_inspector.cpp @@ -244,14 +244,14 @@ void PaintToolsPropertyInspector::_on_undo_pressed() { ERR_FAIL_COND(!paint_canvas); - //paint_canvas->undo_action(); + paint_canvas->undo_action(); } void PaintToolsPropertyInspector::_on_redo_pressed() { PaintCanvas *paint_canvas = Object::cast_to(ObjectDB::get_instance(_paint_canvas)); ERR_FAIL_COND(!paint_canvas); - //paint_canvas->redo_action(); + paint_canvas->redo_action(); } void PaintToolsPropertyInspector::_bind_methods() {