mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Add UndoRedo on Generate Visibility Rect (Particles2D)
This commit is contained in:
parent
2bc981948d
commit
d2f73d4a27
@ -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 New Issue
Block a user