summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorSilc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com>2024-02-13 14:19:23 +0900
committerSilc Lizard (Tokage) Renew <61938263+TokageItLab@users.noreply.github.com>2024-02-13 18:53:21 +0900
commit67e38709fd1147149c6fcb032c774c5642b172fc (patch)
tree2f502bd0877b962db5df0c778cc9c494f40880c3 /editor
parent9050ee1542f4e071188e8e4f868f3507bb31b3dc (diff)
downloadredot-engine-67e38709fd1147149c6fcb032c774c5642b172fc.tar.gz
Avoid unqualified-id "near" and "far" in Node3DEditor/Viewport
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index 4dc7222b74..da2c4de52f 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -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();