Merge pull request #25701 from Chaosus/fix_particles_gizmo

Fix undo for Particles 3D gizmo
This commit is contained in:
Rémi Verschelde
2019-02-08 19:51:40 +01:00
committed by GitHub

View File

@@ -2414,8 +2414,8 @@ void ParticlesGizmoPlugin::commit_handle(EditorSpatialGizmo *p_gizmo, int p_idx,
UndoRedo *ur = SpatialEditor::get_singleton()->get_undo_redo(); UndoRedo *ur = SpatialEditor::get_singleton()->get_undo_redo();
ur->create_action(TTR("Change Particles AABB")); ur->create_action(TTR("Change Particles AABB"));
ur->add_do_method(particles, "set_custom_aabb", particles->get_visibility_aabb()); ur->add_do_method(particles, "set_visibility_aabb", particles->get_visibility_aabb());
ur->add_undo_method(particles, "set_custom_aabb", p_restore); ur->add_undo_method(particles, "set_visibility_aabb", p_restore);
ur->commit_action(); ur->commit_action();
} }