File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Assets/com.unity.formats.fbx/Editor/Scripts Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3588,7 +3588,13 @@ protected static bool ExportSingleEditorClip(Object editorClipSelected)
3588
3588
object selClipItem = editorClipSelected . GetType ( ) . GetProperty ( "item" ) . GetValue ( editorClipSelected , null ) ;
3589
3589
object selClipItemParentTrack = selClipItem . GetType ( ) . GetProperty ( "parentTrack" ) . GetValue ( selClipItem , null ) ;
3590
3590
AnimationTrack editorClipAnimationTrack = selClipItemParentTrack as AnimationTrack ;
3591
- Object animationTrackObject = UnityEditor . Timeline . TimelineEditor . inspectedDirector . GetGenericBinding ( editorClipAnimationTrack ) ;
3591
+
3592
+ #if UNITY_2018_2_OR_NEWER
3593
+ Object animationTrackObject = UnityEditor . Timeline . TimelineEditor . inspectedDirector . GetGenericBinding ( editorClipAnimationTrack ) ;
3594
+ #else // UNITY_2018_2_OR_NEWER
3595
+ Object animationTrackObject = UnityEditor . Timeline . TimelineEditor . playableDirector . GetGenericBinding ( editorClipAnimationTrack ) ;
3596
+ #endif // UNITY_2018_2_OR_NEWER
3597
+
3592
3598
GameObject animationTrackGO = null ;
3593
3599
if ( animationTrackObject is GameObject )
3594
3600
{
You can’t perform that action at this time.
0 commit comments