From 0a6a74bac41558af0ee6d3031d923470d32e767e Mon Sep 17 00:00:00 2001 From: Michael Kowalski Date: Fri, 25 Feb 2022 09:27:10 -0500 Subject: 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 --- source/blender/io/usd/intern/usd_capi_import.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') 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) { -- cgit v1.2.3