1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Core: Use Math namespace for constants

This commit is contained in:
Thaddeus Crews
2025-04-10 11:21:05 -05:00
parent 06c71fbf40
commit 94282d88f9
181 changed files with 812 additions and 818 deletions

View File

@@ -1623,7 +1623,7 @@ void RuntimeNodeSelect::_physics_frame() {
switch (selection_drag_state) {
case SELECTION_DRAG_END: {
selection_position = Point2(INFINITY, INFINITY);
selection_position = Point2(Math::INF, Math::INF);
selection_drag_state = SELECTION_DRAG_NONE;
if (selection_drag_area.get_area() > SELECTION_MIN_AREA) {
@@ -1679,11 +1679,11 @@ void RuntimeNodeSelect::_physics_frame() {
}
if (items.is_empty()) {
selection_position = Point2(INFINITY, INFINITY);
selection_position = Point2(Math::INF, Math::INF);
return;
}
if ((!list_shortcut_pressed && node_select_mode == SELECT_MODE_SINGLE) || items.size() == 1) {
selection_position = Point2(INFINITY, INFINITY);
selection_position = Point2(Math::INF, Math::INF);
Vector<Node *> node;
node.append(items[0].item);
@@ -1696,7 +1696,7 @@ void RuntimeNodeSelect::_physics_frame() {
_open_selection_list(items, selection_position);
}
selection_position = Point2(INFINITY, INFINITY);
selection_position = Point2(Math::INF, Math::INF);
}
void RuntimeNodeSelect::_send_ids(const Vector<Node *> &p_picked_nodes, bool p_invert_new_selections) {