diff options
author | lawnjelly <lawnjelly@gmail.com> | 2022-02-22 19:01:18 +0000 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2022-02-22 19:01:18 +0000 |
commit | bb070af610fd29a6ed19e26b771945eed09e4a92 (patch) | |
tree | 51eb69fc6c87ba02d5464b631760896aad8577c4 | |
parent | 872e8a43ca08920c8d3d82a20265742ac7186a66 (diff) |
Fix GIProbe gizmo out of bounds crash
The GIProbe gizmo was writing values in 3 dimensions to Vector2s. This error was previously being masked by the Vector2 accessor, but now results in a crash or ERR_FAIL message.
This PR removes the Vector2s as they were unused.
-rw-r--r-- | editor/plugins/node_3d_editor_gizmos.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/editor/plugins/node_3d_editor_gizmos.cpp b/editor/plugins/node_3d_editor_gizmos.cpp index 46b33f62fe..23f3087553 100644 --- a/editor/plugins/node_3d_editor_gizmos.cpp +++ b/editor/plugins/node_3d_editor_gizmos.cpp @@ -3669,13 +3669,8 @@ void VoxelGIGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) { continue; } - Vector2 dir; - dir[j] = 1.0; - Vector2 ta, tb; int j_n1 = (j + 1) % 3; int j_n2 = (j + 2) % 3; - ta[j_n1] = 1.0; - tb[j_n2] = 1.0; for (int k = 0; k < 4; k++) { Vector3 from = aabb.position, to = aabb.position; |