Clamp filling angle instead of normalize
This commit is contained in:
parent
4345009a0e
commit
bf4bb3e17b
1 changed files with 1 additions and 5 deletions
|
@ -233,11 +233,7 @@ float TextureProgress::get_radial_initial_angle()
|
|||
|
||||
void TextureProgress::set_fill_degrees(float p_angle)
|
||||
{
|
||||
while(p_angle>360)
|
||||
p_angle-=360;
|
||||
while (p_angle<0)
|
||||
p_angle+=360;
|
||||
rad_max_degrees=p_angle;
|
||||
rad_max_degrees=CLAMP(p_angle,0,360);
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue