[Bf-blender-cvs] [a61fdcd3493] universal-scene-description: USD blendshape import errors for instances.
Michael Kowalski
noreply at git.blender.org
Mon Aug 15 22:33:34 CEST 2022
Commit: a61fdcd34930089f19941b3c08394e692b882dd0
Author: Michael Kowalski
Date: Sun Aug 14 14:24:09 2022 -0400
Branches: universal-scene-description
https://developer.blender.org/rBa61fdcd34930089f19941b3c08394e692b882dd0
USD blendshape import errors for instances.
No longer attempting to create a skel binding on
instance proxies and proxies, as doing so generates
USD errors.
===================================================================
M source/blender/io/usd/intern/usd_skel_convert.cc
===================================================================
diff --git a/source/blender/io/usd/intern/usd_skel_convert.cc b/source/blender/io/usd/intern/usd_skel_convert.cc
index 9d3ed2b4d83..5c0c7af4812 100644
--- a/source/blender/io/usd/intern/usd_skel_convert.cc
+++ b/source/blender/io/usd/intern/usd_skel_convert.cc
@@ -131,6 +131,12 @@ void import_blendshapes(Main *bmain, Object *obj, pxr::UsdPrim prim)
return;
}
+ if (prim.IsInstanceProxy() || prim.IsInPrototype()) {
+ /* Attempting to create a UsdSkelBindingAPI for
+ * instance proxies and prototypes generates USD errors. */
+ return;
+ }
+
pxr::UsdSkelBindingAPI skel_api = pxr::UsdSkelBindingAPI::Apply(prim);
if (!skel_api) {
More information about the Bf-blender-cvs
mailing list