Skip to content

Commit

Permalink
Merge pull request #91177 from markusstephanides/master
Browse files Browse the repository at this point in the history
Add no-change check to `Label3D::set_text`
  • Loading branch information
akien-mga committed Apr 29, 2024
2 parents 13fbd42 + c14b395 commit ba27c0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scene/3d/label_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba27c0c

Please sign in to comment.