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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/io/usd/intern/usd_capi_import.cc')
-rw-r--r--source/blender/io/usd/intern/usd_capi_import.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/io/usd/intern/usd_capi_import.cc b/source/blender/io/usd/intern/usd_capi_import.cc
index 5808c6bc77a..cd50f41b9fb 100644
--- a/source/blender/io/usd/intern/usd_capi_import.cc
+++ b/source/blender/io/usd/intern/usd_capi_import.cc
@@ -385,13 +385,16 @@ static void import_freejob(void *user_data)
using namespace blender::io::usd;
+void USD_ensure_plugin_path_registered()
+{
+ blender::io::usd::ensure_usd_plugin_path_registered();
+}
+
bool USD_import(struct bContext *C,
const char *filepath,
const USDImportParams *params,
bool as_background_job)
{
- blender::io::usd::ensure_usd_plugin_path_registered();
-
/* Using new here since `MEM_*` functions do not call constructor to properly initialize data. */
ImportJobData *job = new ImportJobData();
job->bmain = CTX_data_main(C);
@@ -545,9 +548,6 @@ CacheArchiveHandle *USD_create_handle(struct Main * /*bmain*/,
const char *filepath,
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(filepath);
if (!stage) {