From 3a299c49caf3d2f227755860b6f60ce0995f46b4 Mon Sep 17 00:00:00 2001 From: Sam Haves Date: Wed, 8 Oct 2025 11:53:58 -0700 Subject: [PATCH] Remove use of usdaFileFormat from mjcf_file_format. Previously this was just used for the USDA file format token, which we can confidently just construct ourselves. Since [this PR in OpenUSD](https://github.com/PixarAnimationStudios/OpenUSD/commit/5bb9ad1fb2a034e1f9b48c7db936f296b5b78e25) the file lives in a different place now and public usage will be deprecated anyways. PiperOrigin-RevId: 816801204 Change-Id: I42e92d2af52b0f9ff0a679ecb96f3d2dbf623531 --- src/experimental/usd/plugins/mjcf/mjcf_file_format.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/experimental/usd/plugins/mjcf/mjcf_file_format.cc b/src/experimental/usd/plugins/mjcf/mjcf_file_format.cc index dff797a9..f9c78252 100644 --- a/src/experimental/usd/plugins/mjcf/mjcf_file_format.cc +++ b/src/experimental/usd/plugins/mjcf/mjcf_file_format.cc @@ -39,7 +39,6 @@ #include #include #include -#include PXR_NAMESPACE_OPEN_SCOPE @@ -285,7 +284,7 @@ bool UsdMjcfFileFormat::Read(pxr::SdfLayer *layer, bool UsdMjcfFileFormat::WriteToString(const SdfLayer &layer, std::string *str, const std::string &comment) const { - return SdfFileFormat::FindById(pxr::UsdUsdaFileFormatTokens->Id) + return SdfFileFormat::FindById(pxr::TfToken("usda")) ->WriteToString(layer, str, comment); }