You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Merge pull request #59084 from rburing/particle_collision_gizmo_fix
Fix out of bounds crash in particle collision gizmo
This commit is contained in:
@@ -3177,13 +3177,8 @@ void GPUParticlesCollision3DGizmoPlugin::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;
|
||||
|
||||
Reference in New Issue
Block a user