Avoid unqualified-id "near" and "far" in Node3DEditor/Viewport

This commit is contained in:
Silc Lizard (Tokage) Renew 2024-02-13 14:19:23 +09:00
parent 9050ee1542
commit 67e38709fd
8 changed files with 55 additions and 75 deletions

View file

@ -943,13 +943,13 @@ void Node3DEditorViewport::_select_region() {
}
}
Plane near(-_get_camera_normal(), cam_pos);
near.d -= get_znear();
frustum.push_back(near);
Plane near_plane = Plane(-_get_camera_normal(), cam_pos);
near_plane.d -= get_znear();
frustum.push_back(near_plane);
Plane far = -near;
far.d += get_zfar();
frustum.push_back(far);
Plane far_plane = -near_plane;
far_plane.d += get_zfar();
frustum.push_back(far_plane);
if (spatial_editor->get_single_selected_node()) {
Node3D *single_selected = spatial_editor->get_single_selected_node();