summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Stephanides <maste@live.at>2024-04-25 22:13:20 +0200
committerGitHub <noreply@github.com>2024-04-25 22:13:20 +0200
commitc14b395c782f9ff1e80e47dda1c8ef97d17f342f (patch)
treefa483937d8f3f8620063e388c3cc4cf4427e960c
parent11d3768132582d192b8464769f26b493ae822321 (diff)
downloadredot-engine-c14b395c782f9ff1e80e47dda1c8ef97d17f342f.tar.gz
Add no-change check to Label3D
-rw-r--r--scene/3d/label_3d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/label_3d.cpp b/scene/3d/label_3d.cpp
index 9f71c881a9..54370f42da 100644
--- a/scene/3d/label_3d.cpp
+++ b/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;