소스 검색

Merge pull request #34874 from wingedadventurer/bugfix-label-visible-characters

Make Label node consider spaces for visible_characters property
Rémi Verschelde 5 년 전
부모
커밋
1de54bb388
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/gui/label.cpp

+ 1 - 0
scene/gui/label.cpp

@@ -224,6 +224,7 @@ void Label::_notification(int p_what) {
 					return;
 				}
 				if (from->space_count) {
+					chars_total += from->space_count;
 					/* spacing */
 					x_ofs += space_w * from->space_count;
 					if (can_fill && align == ALIGN_FILL && spaces) {