@@ -1857,7 +1857,11 @@ internal void ExportAnimationKeys (AnimationCurve uniAnimCurve, FbxAnimCurve fbx
1857
1857
}
1858
1858
1859
1859
float tangentMultiplier = 100 ;
1860
- if ( uniPropertyName == "m_LocalPosition.x" )
1860
+ if ( uniPropertyName . StartsWith ( "localEulerAnglesRaw" ) )
1861
+ {
1862
+ tangentMultiplier = 1 ;
1863
+ }
1864
+ if ( uniPropertyName == "m_LocalPosition.x" || uniPropertyName == "localEulerAnglesRaw.y" || uniPropertyName == "localEulerAnglesRaw.z" )
1861
1865
{
1862
1866
tangentMultiplier *= - 1 ; // have to negate x when switching between Unity->Maya axes
1863
1867
}
@@ -2052,9 +2056,12 @@ public UnityToMayaConvertSceneHelper(string uniPropertyName)
2052
2056
bool partT = uniPropertyName . StartsWith ( "m_LocalPosition." , cc ) || uniPropertyName . StartsWith ( "m_TranslationOffset" , cc ) ;
2053
2057
bool partTx = uniPropertyName . EndsWith ( "Position.x" , cc ) || uniPropertyName . EndsWith ( "T.x" , cc ) || ( uniPropertyName . StartsWith ( "m_TranslationOffset" ) && uniPropertyName . EndsWith ( ".x" , cc ) ) ;
2054
2058
bool partRyz = uniPropertyName . StartsWith ( "m_RotationOffset" , cc ) && ( uniPropertyName . EndsWith ( ".y" ) || uniPropertyName . EndsWith ( ".z" ) ) ;
2059
+ partRyz = partRyz || ( uniPropertyName . StartsWith ( "localEulerAnglesRaw" , cc ) && ( uniPropertyName . EndsWith ( ".y" ) || uniPropertyName . EndsWith ( ".z" ) ) ) ;
2060
+ //bool partR = uniPropertyName.StartsWith("localEulerAnglesRaw.", cc);
2055
2061
2056
2062
convertLtoR |= partTx ;
2057
2063
convertLtoR |= partRyz ;
2064
+ convertLtoR |= partRyz ;
2058
2065
2059
2066
convertDistance |= partT ;
2060
2067
convertDistance |= uniPropertyName . StartsWith ( "m_Intensity" , cc ) ;
@@ -2218,12 +2225,12 @@ private void ExportAnimationClip (AnimationClip uniAnimClip, GameObject uniRoot,
2218
2225
continue ;
2219
2226
}
2220
2227
2221
- index = EulerCurve . GetEulerIndex ( propertyName ) ;
2228
+ /* index = EulerCurve.GetEulerIndex (propertyName);
2222
2229
if (index >= 0) {
2223
2230
RotationCurve rotCurve = GetRotationCurve<EulerCurve> (uniGO, uniAnimClip.frameRate, ref rotations);
2224
2231
rotCurve.SetCurve (index, uniAnimCurve);
2225
2232
continue;
2226
- }
2233
+ }*/
2227
2234
2228
2235
// simple property (e.g. intensity), export right away
2229
2236
ExportAnimationCurve ( fbxNode , uniAnimCurve , uniAnimClip . frameRate ,
0 commit comments