Explorar o código

Merge pull request #69584 from bruvzg/fix_tm_tr_4

[TextMesh] Fix autotranslate.
Rémi Verschelde %!s(int64=2) %!d(string=hai) anos
pai
achega
9962225d89
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      scene/3d/mesh_instance_3d.cpp

+ 5 - 0
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;
 	}
 }