Merge pull request #58444 from lawnjelly/giprobe_gizmo_fix4

This commit is contained in:
Rémi Verschelde 2022-02-23 13:05:10 +01:00 committed by GitHub
commit 65fdba1464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;