fix so the error macro uses the incomming parameter p_subdivision instead of the class member

This commit is contained in:
Manuel Dun 2021-10-12 20:22:33 -04:00
parent 6f1d2133bb
commit 3905b4e67a

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();