diff options
author | LATRio <AlSenya@yandex.ru> | 2021-09-25 23:06:32 +0900 |
---|---|---|
committer | LATRio <AlSenya@yandex.ru> | 2021-09-25 23:06:32 +0900 |
commit | 1b55d72c68030c62d1dffe47cf4a53ccf40c7b50 (patch) | |
tree | ecc7fdc3103d44e115d7cbe7da86fefbbeddfb4b /scene/3d | |
parent | 9013771b53cdbc6451f2645f3618ad59d90a2fb1 (diff) |
fix out of bounds crash in GPUParticle3D::_skinning_changed()
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/gpu_particles_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/gpu_particles_3d.cpp b/scene/3d/gpu_particles_3d.cpp index baf28ae102..32a62d8c7e 100644 --- a/scene/3d/gpu_particles_3d.cpp +++ b/scene/3d/gpu_particles_3d.cpp @@ -469,7 +469,7 @@ void GPUParticles3D::_skinning_changed() { if (draw_pass.is_valid() && draw_pass->get_builtin_bind_pose_count() > 0) { xforms.resize(draw_pass->get_builtin_bind_pose_count()); for (int j = 0; j < draw_pass->get_builtin_bind_pose_count(); j++) { - xforms.write[i] = draw_pass->get_builtin_bind_pose(j); + xforms.write[j] = draw_pass->get_builtin_bind_pose(j); } break; } |