[Bf-blender-cvs] [e8306114382] usd-importer-T81257-merge: USD import: z-up conversion for constraint.

makowalski noreply at git.blender.org
Mon May 17 23:05:30 CEST 2021


Commit: e8306114382bd56168c89a4236a6dd766c9f3d53
Author: makowalski
Date:   Mon May 17 16:55:42 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rBe8306114382bd56168c89a4236a6dd766c9f3d53

USD import: z-up conversion for constraint.

Added logic to handle z-up conversion when creating
the USDStageReader handle for the transform cache
constraint.

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

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 b9556a12a1f..410935bbc89 100644
--- a/source/blender/io/usd/intern/usd_capi_import.cc
+++ b/source/blender/io/usd/intern/usd_capi_import.cc
@@ -534,6 +534,11 @@ CacheArchiveHandle *USD_create_handle(struct Main * /*bmain*/,
     return NULL;
   }
 
+  blender::io::usd::ImportSettings settings;
+  convert_to_z_up(stage_reader->stage(), settings);
+
+  stage_reader->settings(settings);
+
   if (object_paths) {
     gather_objects_paths(stage_reader->stage()->GetPseudoRoot(), object_paths);
   }



More information about the Bf-blender-cvs mailing list