diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-28 14:57:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 14:57:31 +0100 |
commit | 8f4c4bb6106e11d4c6fe1d37e5ad294474f6bb0d (patch) | |
tree | d53f0745b99ae941a56be36729230f8950523cf3 /editor/node_3d_editor_gizmos.cpp | |
parent | 76d4fab3f3dad0c5b3f0fad059edf4e57ebc6299 (diff) | |
parent | ecf8ae5bcf5d355f79bf3e84e19331f598b19622 (diff) |
Merge pull request #44434 from madmiraal/rename-camera3d-near-and-far
Rename Camera3D near and far getters and setters
Diffstat (limited to 'editor/node_3d_editor_gizmos.cpp')
-rw-r--r-- | editor/node_3d_editor_gizmos.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/node_3d_editor_gizmos.cpp b/editor/node_3d_editor_gizmos.cpp index 1d09ad8a4c..71ceff7fee 100644 --- a/editor/node_3d_editor_gizmos.cpp +++ b/editor/node_3d_editor_gizmos.cpp @@ -633,7 +633,7 @@ bool EditorNode3DGizmo::intersect_ray(Camera3D *p_camera, const Point2 &p_point, tcp = a; } - if (camp.distance_to(tcp) < p_camera->get_znear()) { + if (camp.distance_to(tcp) < p_camera->get_near()) { continue; } cp = tcp; @@ -1357,7 +1357,7 @@ void Camera3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) { case Camera3D::PROJECTION_FRUSTUM: { float hsize = camera->get_size() / 2.0; - Vector3 side = Vector3(hsize, 0, -camera->get_znear()).normalized(); + Vector3 side = Vector3(hsize, 0, -camera->get_near()).normalized(); Vector3 nside = side; nside.x = -nside.x; Vector3 up = Vector3(0, side.x, 0); |