mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
Now the undo and redo buttons in PaintToolsPropertyInspector actually work.
This commit is contained in:
parent
120e59baba
commit
dc4ded8bd8
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user