mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Remove ABS in favor of Math::abs
This commit is contained in:
parent
3d9b05ad4a
commit
10f6c01b9c
68 changed files with 142 additions and 146 deletions
|
@ -183,7 +183,7 @@ void SpriteFramesEditor::_sheet_preview_input(const Ref<InputEvent> &p_event) {
|
|||
const int from = last_frame_selected;
|
||||
const int to = idx;
|
||||
|
||||
const int diff = ABS(to - from);
|
||||
const int diff = Math::abs(to - from);
|
||||
const int dir = SIGN(to - from);
|
||||
|
||||
for (int i = 0; i <= diff; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue