diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-21 11:50:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 11:50:26 +0200 |
commit | 2273f13fbe7ba0482288e497031616ebd533308f (patch) | |
tree | 3f5aa6c3dab7c3a0329e4746f2b3ef709e32d143 /scene | |
parent | b5f5fac840914ec84ef373a38381432470e2da36 (diff) | |
parent | 4bd5e4fd9b80384d511e4c8f2f642b43159aba4c (diff) |
Merge pull request #50686 from Calinou/use-standard-inf-nan-constants
Use the standard C `INFINITY` and `NAN` constants directly
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/viewport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h index 7b7f1c3818..32b6ba84b5 100644 --- a/scene/main/viewport.h +++ b/scene/main/viewport.h @@ -263,7 +263,7 @@ private: Transform3D physics_last_camera_transform; ObjectID physics_last_id; bool physics_has_last_mousepos = false; - Vector2 physics_last_mousepos = Vector2(Math_INF, Math_INF); + Vector2 physics_last_mousepos = Vector2(INFINITY, INFINITY); struct { bool alt = false; bool control = false; |