Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMichael Kowalski <makowalski@nvidia.com>2022-02-25 17:27:10 +0300
committerMichael Kowalski <makowalski@nvidia.com>2022-02-25 17:27:10 +0300
commit0a6a74bac41558af0ee6d3031d923470d32e767e (patch)
tree88509dc9c63fc0d8a6461f6d7616b8552522bd9e /source
parent06f5f29d171f8803a60c11eb6e30bae079ede8ea (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')
-rw-r--r--source/blender/io/usd/intern/usd_capi_import.cc3
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) {