summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-04 23:04:48 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-12-04 23:04:48 +0200
commit08d7c24ebe8e951deec581883e0d0db0534afbe9 (patch)
treec43d0874942ecf9014754135c2fb6354cb39b1ae
parent015dc492de33a41eaeb14c0503a6be10466fe457 (diff)
[TextMesh] Fix autotranslate.
-rw-r--r--scene/3d/mesh_instance_3d.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/mesh_instance_3d.cpp b/scene/3d/mesh_instance_3d.cpp
index 04d164ba88..88b1c340d8 100644
--- a/scene/3d/mesh_instance_3d.cpp
+++ b/scene/3d/mesh_instance_3d.cpp
@@ -322,6 +322,11 @@ void MeshInstance3D::_notification(int p_what) {
case NOTIFICATION_ENTER_TREE: {
_resolve_skeleton_path();
} break;
+ case NOTIFICATION_TRANSLATION_CHANGED: {
+ if (mesh.is_valid()) {
+ mesh->notification(NOTIFICATION_TRANSLATION_CHANGED);
+ }
+ } break;
}
}