Browse Source

Merge pull request #5755 from TheHX/issue-5716

Fix empty reference pages after restarting Godot
Rémi Verschelde 9 years ago
parent
commit
7b28976af5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scene/gui/rich_text_label.cpp

+ 3 - 1
scene/gui/rich_text_label.cpp

@@ -662,7 +662,9 @@ void RichTextLabel::_notification(int p_what) {
 		} break;
 		case NOTIFICATION_ENTER_TREE: {
 
-			set_bbcode(bbcode);
+			if (bbcode != "")
+				set_bbcode(bbcode);
+
 			main->first_invalid_line=0; //invalidate ALL
 			update();