1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #105249 from Repiteo/core/math-defs-namespace

Core: Use `Math` namespace for constants
This commit is contained in:
Thaddeus Crews
2025-04-11 09:51:04 -05:00
181 changed files with 812 additions and 818 deletions

View File

@@ -1064,7 +1064,7 @@ void LineEdit::drop_data(const Point2 &p_point, const Variant &p_data) {
if (p_data.is_string() && is_editable()) {
apply_ime();
if (p_point != Vector2(INFINITY, INFINITY)) {
if (p_point != Vector2(Math::INF, Math::INF)) {
set_caret_at_pixel_pos(p_point.x);
}
int caret_column_tmp = caret_column;