Now the undo and redo buttons in PaintToolsPropertyInspector actually work.

This commit is contained in:
Relintai 2022-11-18 23:50:05 +01:00
parent 120e59baba
commit dc4ded8bd8

View File

@ -244,14 +244,14 @@ void PaintToolsPropertyInspector::_on_undo_pressed() {
ERR_FAIL_COND(!paint_canvas); ERR_FAIL_COND(!paint_canvas);
//paint_canvas->undo_action(); paint_canvas->undo_action();
} }
void PaintToolsPropertyInspector::_on_redo_pressed() { void PaintToolsPropertyInspector::_on_redo_pressed() {
PaintCanvas *paint_canvas = Object::cast_to<PaintCanvas>(ObjectDB::get_instance(_paint_canvas)); PaintCanvas *paint_canvas = Object::cast_to<PaintCanvas>(ObjectDB::get_instance(_paint_canvas));
ERR_FAIL_COND(!paint_canvas); ERR_FAIL_COND(!paint_canvas);
//paint_canvas->redo_action(); paint_canvas->redo_action();
} }
void PaintToolsPropertyInspector::_bind_methods() { void PaintToolsPropertyInspector::_bind_methods() {