diff options
author | Michael Kowalski <makowalski@nvidia.com> | 2022-02-25 17:27:10 +0300 |
---|---|---|
committer | Michael Kowalski <makowalski@nvidia.com> | 2022-02-25 17:27:10 +0300 |
commit | 0a6a74bac41558af0ee6d3031d923470d32e767e (patch) | |
tree | 88509dc9c63fc0d8a6461f6d7616b8552522bd9e /source/blender/io | |
parent | 06f5f29d171f8803a60c11eb6e30bae079ede8ea (diff) |
Fix T94396: USD errors opening saved scenes.
Added call to ensure that the USD plugins are registered
when opening a USD cache archive. This is to avoid USD
load errors due to missing USD file format plugins when
opening blender files that contain USD transform cache
constraints and mesh sequence cache modifilers.
Fixes T94396
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/usd/intern/usd_capi_import.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/io/usd/intern/usd_capi_import.cc b/source/blender/io/usd/intern/usd_capi_import.cc index 1f384bdf127..6186e2bb61f 100644 --- a/source/blender/io/usd/intern/usd_capi_import.cc +++ b/source/blender/io/usd/intern/usd_capi_import.cc @@ -502,6 +502,9 @@ CacheArchiveHandle *USD_create_handle(struct Main * /*bmain*/, const char *filename, ListBase *object_paths) { + /* Must call this so that USD file format plugins are loaded. */ + ensure_usd_plugin_path_registered(); + pxr::UsdStageRefPtr stage = pxr::UsdStage::Open(filename); if (!stage) { |