From c14b395c782f9ff1e80e47dda1c8ef97d17f342f Mon Sep 17 00:00:00 2001 From: Markus Stephanides Date: Thu, 25 Apr 2024 22:13:20 +0200 Subject: [PATCH] Add no-change check to Label3D --- scene/3d/label_3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/3d/label_3d.cpp b/scene/3d/label_3d.cpp index 9f71c881a9f2..54370f42dad2 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;