瀏覽代碼

Same method when redrawing as when theme changed

Cameron Reikes 6 年之前
父節點
當前提交
c123a8c4f5
共有 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: {