diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-08 19:51:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-08 19:51:40 +0100 |
commit | 865d7983e0357e6b52ee77546ea738a2700912d7 (patch) | |
tree | 652a0fb4b2c96b54895167bc73930f99367f1bd3 | |
parent | d16b6a2dac538b0b0d4458e928f87fb0aeb983da (diff) | |
parent | 43a3db4c00a0851e323c905f6e46fd74e7810a50 (diff) |
Merge pull request #25701 from Chaosus/fix_particles_gizmo
Fix undo for Particles 3D gizmo
-rw-r--r-- | editor/spatial_editor_gizmos.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/spatial_editor_gizmos.cpp b/editor/spatial_editor_gizmos.cpp index 4f1928d20c..268a765994 100644 --- a/editor/spatial_editor_gizmos.cpp +++ b/editor/spatial_editor_gizmos.cpp @@ -2414,8 +2414,8 @@ void ParticlesGizmoPlugin::commit_handle(EditorSpatialGizmo *p_gizmo, int p_idx, UndoRedo *ur = SpatialEditor::get_singleton()->get_undo_redo(); ur->create_action(TTR("Change Particles AABB")); - ur->add_do_method(particles, "set_custom_aabb", particles->get_visibility_aabb()); - ur->add_undo_method(particles, "set_custom_aabb", p_restore); + ur->add_do_method(particles, "set_visibility_aabb", particles->get_visibility_aabb()); + ur->add_undo_method(particles, "set_visibility_aabb", p_restore); ur->commit_action(); } |