diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2020-12-28 21:46:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 21:46:43 +0100 |
commit | 6cebb8c11773b203039c811c2ee50ba25c99e5e1 (patch) | |
tree | c08adb794731c9fd9bcd7ed277e85b43e8c7a2c0 /scene/gui/gradient_edit.cpp | |
parent | 8886a6a45c0769903050605898fd07a0ac198cdb (diff) | |
parent | b743a2ef3cc48a94d626fccb49217237b7d4497c (diff) | |
download | redot-engine-6cebb8c11773b203039c811c2ee50ba25c99e5e1.tar.gz |
Merge pull request #44586 from madmiraal/rename-stepify
Rename Math::stepify to snapped
Diffstat (limited to 'scene/gui/gradient_edit.cpp')
-rw-r--r-- | scene/gui/gradient_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/gradient_edit.cpp b/scene/gui/gradient_edit.cpp index 53d7ead548..e67045e10a 100644 --- a/scene/gui/gradient_edit.cpp +++ b/scene/gui/gradient_edit.cpp @@ -237,7 +237,7 @@ void GradientEdit::_gui_input(const Ref<InputEvent> &p_event) { // Snap to "round" coordinates if holding Ctrl. // Be more precise if holding Shift as well if (mm->get_control()) { - newofs = Math::stepify(newofs, mm->get_shift() ? 0.025 : 0.1); + newofs = Math::snapped(newofs, mm->get_shift() ? 0.025 : 0.1); } else if (mm->get_shift()) { // Snap to nearest point if holding just Shift const float snap_threshold = 0.03; |