浏览代码

Merge pull request #55377 from RedHeadphone/patch-1

Rémi Verschelde 3 年之前
父节点
当前提交
9c116fcf0a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/texture_progress_bar.cpp

+ 1 - 0
scene/gui/texture_progress_bar.cpp

@@ -501,6 +501,7 @@ void TextureProgressBar::_notification(int p_what) {
 								}
 
 								p *= get_relative_center();
+								p += progress_offset;
 								p = p.floor();
 								draw_line(p - Point2(8, 0), p + Point2(8, 0), Color(0.9, 0.5, 0.5), 2);
 								draw_line(p - Point2(0, 8), p + Point2(0, 8), Color(0.9, 0.5, 0.5), 2);