File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
com.unity.formats.fbx/Editor Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -957,11 +957,11 @@ SkinnedMeshRenderer unitySkin
957
957
fbxPreRotationQuaternion . Inverse ( ) ;
958
958
959
959
// Multiply LclRotation by pre-rotation inverse to get the LclRotation without pre-rotation applied
960
- var fbxFinalQuat = fbxPreRotationQuaternion * EulerToQuaternion ( new FbxVector4 ( fbxBone . LclRotation . Get ( ) ) ) ;
960
+ var finalLclRotationQuat = fbxPreRotationQuaternion * EulerToQuaternion ( new FbxVector4 ( fbxBone . LclRotation . Get ( ) ) ) ;
961
961
962
- var quatToEulerMatrix = new FbxAMatrix ( ) ;
963
- quatToEulerMatrix . SetQ ( fbxFinalQuat ) ;
964
- fbxBone . LclRotation . Set ( ToFbxDouble3 ( quatToEulerMatrix . GetR ( ) ) ) ;
962
+ // Convert to Euler without axis conversion (Pre-rotation and LclRotation were already in Maya axis)
963
+ // and update LclRotation
964
+ fbxBone . LclRotation . Set ( ToFbxDouble3 ( QuaternionToEuler ( finalLclRotationQuat ) ) ) ;
965
965
}
966
966
}
967
967
You can’t perform that action at this time.
0 commit comments