[Bf-blender-cvs] [1e13fc105a6] universal-scene-description: USD IO: register plugins in USD_create_handle().

Michael Kowalski noreply at git.blender.org
Tue Jan 4 03:44:06 CET 2022


Commit: 1e13fc105a6f57e863eb9f1dbdf62a8d965e92b8
Author: Michael Kowalski
Date:   Mon Jan 3 13:24:20 2022 -0500
Branches: universal-scene-description
https://developer.blender.org/rB1e13fc105a6f57e863eb9f1dbdf62a8d965e92b8

USD IO: register plugins in USD_create_handle().

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 modifilers.

===================================================================

M	source/blender/io/usd/intern/usd_capi_import.cc

===================================================================

diff --git a/source/blender/io/usd/intern/usd_capi_import.cc b/source/blender/io/usd/intern/usd_capi_import.cc
index 44cf1e5b3b6..cd31be894e0 100644
--- a/source/blender/io/usd/intern/usd_capi_import.cc
+++ b/source/blender/io/usd/intern/usd_capi_import.cc
@@ -772,6 +772,8 @@ CacheArchiveHandle *USD_create_handle(struct Main * /*bmain*/,
                                       const char *filename,
                                       ListBase *object_paths)
 {
+  ensure_usd_plugin_path_registered();
+
   pxr::UsdStageRefPtr stage = pxr::UsdStage::Open(filename);
 
   if (!stage) {



More information about the Bf-blender-cvs mailing list