USD export: fix malformed joint paths
Fixing a bug which was causing forward-slash separators in
skeleton joint paths to be replaced with underscores, resulting in
invalid skeletons.
This was inadevertantly introduced in 9ad2c7df0b. I should
have caught this when I reviewed #122471.
Pull Request: https://projects.blender.org/blender/blender/pulls/123031
This commit is contained in:
committed by
Michael Kowalski
parent
27041ecaf8
commit
724a674bae
@@ -98,15 +98,15 @@ void get_armature_bone_names(const Object *ob_arm,
|
||||
|
||||
pxr::TfToken build_usd_joint_path(const Bone *bone, bool allow_unicode)
|
||||
{
|
||||
std::string path(bone->name);
|
||||
std::string path(make_safe_name(bone->name, allow_unicode));
|
||||
|
||||
const Bone *parent = bone->parent;
|
||||
while (parent) {
|
||||
path = parent->name + std::string("/") + path;
|
||||
path = make_safe_name(parent->name, allow_unicode) + std::string("/") + path;
|
||||
parent = parent->parent;
|
||||
}
|
||||
|
||||
return pxr::TfToken(make_safe_name(path, allow_unicode));
|
||||
return pxr::TfToken(path);
|
||||
}
|
||||
|
||||
void create_pose_joints(pxr::UsdSkelAnimation &skel_anim,
|
||||
|
||||
Reference in New Issue
Block a user