Avoid unqualified-id "near" and "far" in Node3DEditor/Viewport
This commit is contained in:
parent
9050ee1542
commit
67e38709fd
8 changed files with 55 additions and 75 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue