diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-13 00:52:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 00:52:56 +0100 |
commit | d9bccd87d360ff54888d43e67b9fb81971d3c672 (patch) | |
tree | 278606af7b252b42f582efe65f7ad0c0948472b3 /editor | |
parent | 84b358c1d8a01ce70a56a099ef98ae014a91239b (diff) | |
parent | ac32535d6e9625221843f5c9faaaad77249251d0 (diff) |
Merge pull request #59084 from rburing/particle_collision_gizmo_fix
Fix out of bounds crash in particle collision gizmo
Diffstat (limited to 'editor')
-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 8aa8ba1f00..51e2f6ff00 100644 --- a/editor/plugins/node_3d_editor_gizmos.cpp +++ b/editor/plugins/node_3d_editor_gizmos.cpp @@ -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; |