소스 검색

Merge pull request #31028 from creikey/fix-theme-update-richtextlabl

Same method when redrawing as when theme changed
Rémi Verschelde 6 년 전
부모
커밋
818704a421
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      scene/gui/rich_text_label.cpp

+ 1 - 5
scene/gui/rich_text_label.cpp

@@ -821,11 +821,7 @@ void RichTextLabel::_notification(int p_what) {
 		} break;
 		case NOTIFICATION_THEME_CHANGED: {
 
-			if (is_inside_tree() && use_bbcode) {
-				parse_bbcode(bbcode);
-				//first_invalid_line=0; //invalidate ALL
-				//update();
-			}
+			update();
 
 		} break;
 		case NOTIFICATION_DRAW: {