Skip to content

Commit

Permalink
Add no-change check to Label3D
Browse files Browse the repository at this point in the history
  • Loading branch information
markusstephanides authored Apr 25, 2024
1 parent 11d3768 commit c14b395
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 c14b395

Please sign in to comment.