You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user