Add UndoRedo on Generate Visibility Rect (Particles2D)
This commit is contained in:
parent
2bc981948d
commit
d2f73d4a27
1 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,10 @@ void Particles2DEditorPlugin::_generate_visibility_rect() {
|
|||
particles->set_emitting(false);
|
||||
}
|
||||
|
||||
particles->set_visibility_rect(rect);
|
||||
undo_redo->create_action(TTR("Generate Visibility Rect"));
|
||||
undo_redo->add_do_method(particles, "set_visibility_rect", rect);
|
||||
undo_redo->add_undo_method(particles, "set_visibility_rect", particles->get_visibility_rect());
|
||||
undo_redo->commit_action();
|
||||
}
|
||||
|
||||
void Particles2DEditorPlugin::_generate_emission_mask() {
|
||||
|
|
Loading…
Reference in a new issue