File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/experimental/usd/plugins/mjcf Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1733,11 +1733,8 @@ class ModelWriter {
1733
1733
1734
1734
// Local joint frame for body1
1735
1735
pxr::GfVec3f local_pos1 (mj_jnt_pos);
1736
- pxr::GfRotation ().SetRotateInto (pxr::GfVec3f::ZAxis (), mj_jnt_axis);
1737
1736
pxr::GfQuatf local_rot1 (
1738
- pxr::GfRotation ()
1739
- .SetRotateInto (pxr::GfVec3f::ZAxis (), mj_jnt_axis)
1740
- .GetQuat ());
1737
+ pxr::GfRotation (pxr::GfVec3f::ZAxis (), mj_jnt_axis).GetQuat ());
1741
1738
1742
1739
SetAttributeDefault (
1743
1740
data_,
@@ -1783,8 +1780,7 @@ class ModelWriter {
1783
1780
if (joint_prim_type == pxr::UsdPhysicsTokens->PhysicsRevoluteJoint ||
1784
1781
joint_prim_type == pxr::UsdPhysicsTokens->PhysicsPrismaticJoint ) {
1785
1782
pxr::GfQuatf other_rot0 (
1786
- pxr::GfRotation ()
1787
- .SetRotateInto (pxr::GfVec3f::ZAxis (), jnt_axis_parent_local)
1783
+ pxr::GfRotation (pxr::GfVec3f::ZAxis (), jnt_axis_parent_local)
1788
1784
.GetQuat ());
1789
1785
1790
1786
SetAttributeDefault (
You can’t perform that action at this time.
0 commit comments