summaryrefslogtreecommitdiffstats
path: root/scene/3d/label_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/label_3d.cpp')
-rw-r--r--scene/3d/label_3d.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/3d/label_3d.cpp b/scene/3d/label_3d.cpp
index 9f71c881a9..0f2ce829eb 100644
--- a/scene/3d/label_3d.cpp
+++ b/scene/3d/label_3d.cpp
@@ -32,7 +32,6 @@
#include "scene/main/viewport.h"
#include "scene/resources/theme.h"
-#include "scene/scene_string_names.h"
#include "scene/theme/theme_db.h"
void Label3D::_bind_methods() {
@@ -636,6 +635,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;