Skip to content

Commit 0a09b6c

Browse files
committed
Revert change to euler filter
1 parent 30b50b0 commit 0a09b6c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/mayaUsd/fileio/translators/translatorSkel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,8 @@ bool _CopyAnimFromSkel(
560560
xforms[i] = samples[i][jointIdx];
561561
}
562562

563-
if (!_SetTransformAnim(jointDep, xforms, mayaTimes, context, true))
563+
if (!_SetTransformAnim(
564+
jointDep, xforms, mayaTimes, context, args.GetJobArguments().applyEulerFilter))
564565
return false;
565566
}
566567
return true;

test/lib/usd/translators/testUsdImportEulerFilter.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ def setUpClass(cls):
7676
cls.xform_file = os.path.join(tempTestPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_xform.usda")
7777
build_xform_scene(cls.xform_file)
7878

79+
def test_skel_rotation_fail(self):
80+
"""The original behaviour should not correct euler angles on import"""
81+
cmds.file(f=1, new=1)
82+
cmds.mayaUSDImport(file=self.skel_file, ani=1)
83+
84+
values = cmds.keyframe('joint1.rx', q=1, vc=1)
85+
self.assertNotAlmostEqual(0.0, values[-1])
86+
7987
def test_xform_rotation_fail(self):
8088
"""The original behaviour should not correct euler angles on import"""
8189
cmds.file(f=1, new=1)

0 commit comments

Comments
 (0)