Browse Source

Merge pull request #6427 from MarianoGnu/master

Explicitly initialize TextureProgress's initial angle value.
Mariano Javier Suligoy 9 years ago
parent
commit
462c171c65
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/texture_progress.cpp

+ 1 - 0
scene/gui/texture_progress.cpp

@@ -297,6 +297,7 @@ void TextureProgress::_bind_methods() {
 TextureProgress::TextureProgress()
 TextureProgress::TextureProgress()
 {
 {
 	mode=FILL_LEFT_TO_RIGHT;
 	mode=FILL_LEFT_TO_RIGHT;
+	rad_init_angle=0;
 	rad_center_off=Point2();
 	rad_center_off=Point2();
 	rad_max_degrees=360;
 	rad_max_degrees=360;
 }
 }