1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +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

@@ -3401,7 +3401,7 @@ bool TextEdit::can_drop_data(const Point2 &p_point, const Variant &p_data) const
void TextEdit::drop_data(const Point2 &p_point, const Variant &p_data) {
Control::drop_data(p_point, p_data);
if (p_point == Vector2(INFINITY, INFINITY)) {
if (p_point == Vector2(Math::INF, Math::INF)) {
insert_text_at_caret(p_data);
} else if (p_data.is_string() && is_editable()) {
Point2i pos = get_line_column_at_pos(get_local_mouse_pos());