Merge pull request #91177 from markusstephanides/master
Add no-change check to `Label3D::set_text`
This commit is contained in:
commit
ba27c0c31c
1 changed files with 4 additions and 0 deletions
|
@ -636,6 +636,10 @@ void Label3D::_shape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Label3D::set_text(const String &p_string) {
|
void Label3D::set_text(const String &p_string) {
|
||||||
|
if (text == p_string) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
text = p_string;
|
text = p_string;
|
||||||
xl_text = atr(p_string);
|
xl_text = atr(p_string);
|
||||||
dirty_text = true;
|
dirty_text = true;
|
||||||
|
|
Loading…
Reference in a new issue