summaryrefslogtreecommitdiffstats
path: root/scene/gui/gradient_edit.cpp
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-21 18:02:57 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-28 13:01:30 +0000
commitb743a2ef3cc48a94d626fccb49217237b7d4497c (patch)
tree7c9082151468bcae97a39bdd4ff265c5b9ba05f7 /scene/gui/gradient_edit.cpp
parentbe509bf5e4d00b33f2867e6d06a23285b2a8fd29 (diff)
downloadredot-engine-b743a2ef3cc48a94d626fccb49217237b7d4497c.tar.gz
Rename Math::stepify to snapped
Diffstat (limited to 'scene/gui/gradient_edit.cpp')
-rw-r--r--scene/gui/gradient_edit.cpp2
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;