File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
com.unity.formats.fbx/Editor Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -951,13 +951,13 @@ SkinnedMeshRenderer unitySkin
951
951
952
952
// Get prerotation
953
953
var fbxPreRotationEuler = fbxBone . GetPreRotation ( FbxNode . EPivotSet . eSourcePivot ) ;
954
- // Convert the prerotation to a Quaternion (so that it can be inverted)
955
- var fbxPreRotationInverse = ModelExporter . EulerToQuaternion ( fbxPreRotationEuler ) ;
956
- // Get the inverse of the prerotation
957
- fbxPreRotationInverse . Inverse ( ) ;
954
+ // Convert the prerotation to a Quaternion
955
+ var fbxPreRotationQuaternion = ModelExporter . EulerToQuaternion ( fbxPreRotationEuler ) ;
956
+ // Inverse of the prerotation
957
+ fbxPreRotationQuaternion . Inverse ( ) ;
958
958
959
959
// Multiply LclRotation by pre-rotation inverse to get the LclRotation without pre-rotation applied
960
- var fbxFinalQuat = fbxPreRotationInverse * EulerToQuaternion ( new FbxVector4 ( fbxBone . LclRotation . Get ( ) ) ) ;
960
+ var fbxFinalQuat = fbxPreRotationQuaternion * EulerToQuaternion ( new FbxVector4 ( fbxBone . LclRotation . Get ( ) ) ) ;
961
961
962
962
var quatToEulerMatrix = new FbxAMatrix ( ) ;
963
963
quatToEulerMatrix . SetQ ( fbxFinalQuat ) ;
You can’t perform that action at this time.
0 commit comments