소스 검색

Merge pull request #91177 from markusstephanides/master

Add no-change check to `Label3D::set_text`
Rémi Verschelde 1 년 전
부모
커밋
ba27c0c31c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      scene/3d/label_3d.cpp

+ 4 - 0
scene/3d/label_3d.cpp

@@ -636,6 +636,10 @@ void Label3D::_shape() {
 }
 
 void Label3D::set_text(const String &p_string) {
+	if (text == p_string) {
+		return;
+	}
+
 	text = p_string;
 	xl_text = atr(p_string);
 	dirty_text = true;