Merge pull request #53747 from manueldun/trailSectionSubdivCrash

This commit is contained in:
Rémi Verschelde 2021-10-13 12:43:48 +02:00 committed by GitHub
commit a564dd7c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -163,8 +163,8 @@ void GPUParticles2D::set_trail_sections(int p_sections) {
}
void GPUParticles2D::set_trail_section_subdivisions(int p_subdivisions) {
ERR_FAIL_COND(trail_section_subdivisions < 1);
ERR_FAIL_COND(trail_section_subdivisions > 1024);
ERR_FAIL_COND(p_subdivisions < 1);
ERR_FAIL_COND(p_subdivisions > 1024);
trail_section_subdivisions = p_subdivisions;
update();