diff options
-rw-r--r-- | scene/gui/texture_progress.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/gui/texture_progress.cpp b/scene/gui/texture_progress.cpp index c92929d991..c8930add6e 100644 --- a/scene/gui/texture_progress.cpp +++ b/scene/gui/texture_progress.cpp @@ -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(); } |