mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 03:04:31 +00:00
Rename Math::stepify to snapped
This commit is contained in:
parent
be509bf5e4
commit
b743a2ef3c
28 changed files with 148 additions and 148 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue