mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
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.
This commit is contained in:
parent
1bbf46bfba
commit
e3f84916de
@ -2818,13 +2818,8 @@ void GIProbeGizmoPlugin::redraw(EditorSpatialGizmo *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;
|
||||
|
Loading…
Reference in New Issue
Block a user