fix so the error macro uses the incomming parameter p_subdivision instead of the class member
This commit is contained in:
parent
6f1d2133bb
commit
3905b4e67a
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue