浏览代码

Explicitly initialize TextureProgress's initial angle value.
(Hopefully)
Fixes #3856
Fixes #6426
Fixes #6344

MarianoGNU 9 年之前
父节点
当前提交
ae4f7cbc2c
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 }
 }