Skip to content

Commit fd31e0b

Browse files
committed
fix indentation + remove debug logs
1 parent 170133d commit fd31e0b

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,19 +3078,19 @@ static void OnClipContextClick(MenuCommand command)
30783078
{
30793079
if (obj.GetType().Name.Contains("EditorClip"))
30803080
{
3081-
var selClip = obj.GetType().GetProperty("clip").GetValue(obj, null);
3081+
var selClip = obj.GetType ().GetProperty ("clip").GetValue (obj, null);
30823082
UnityEngine.Timeline.TimelineClip timeLineClip = selClip as UnityEngine.Timeline.TimelineClip;
30833083

3084-
var selClipItem = obj.GetType().GetProperty("item").GetValue(obj, null);
3085-
var selClipItemParentTrack = selClipItem.GetType().GetProperty("parentTrack").GetValue(selClipItem, null);
3086-
AnimationTrack editorClipAnimationTrack = selClipItemParentTrack as AnimationTrack;
3084+
var selClipItem = obj.GetType ().GetProperty ("item").GetValue (obj, null);
3085+
var selClipItemParentTrack = selClipItem.GetType ().GetProperty ("parentTrack").GetValue (selClipItem, null);
3086+
AnimationTrack editorClipAnimationTrack = selClipItemParentTrack as AnimationTrack;
30873087

30883088
GameObject animationTrackGObject = UnityEditor.Timeline.TimelineEditor.playableDirector.GetGenericBinding (editorClipAnimationTrack) as GameObject;
30893089

3090-
string filePath = folderPath + "/" + animationTrackGObject.name + "@" + timeLineClip.animationClip.name + ".fbx";
3091-
UnityEngine.Object[] myArray = new UnityEngine.Object[] { animationTrackGObject, timeLineClip.animationClip };
3090+
string filePath = folderPath + "/" + animationTrackGObject.name + "@" + timeLineClip.animationClip.name + ".fbx";
3091+
UnityEngine.Object[] myArray = new UnityEngine.Object[] { animationTrackGObject, timeLineClip.animationClip };
30923092

3093-
ExportObjects(filePath, myArray, AnimationExportType.timelineAnimationClip);
3093+
ExportObjects (filePath, myArray, AnimationExportType.timelineAnimationClip);
30943094
}
30953095
}
30963096
}
@@ -3115,7 +3115,6 @@ static void OnGameObjectWithTimelineContextClick(MenuCommand command)
31153115
{
31163116
return;
31173117
}
3118-
Debug.Log(folderPath);
31193118

31203119
Object[] selection = null;
31213120

@@ -3136,8 +3135,6 @@ static void OnGameObjectWithTimelineContextClick(MenuCommand command)
31363135

31373136
foreach (GameObject obj in selection)
31383137
{
3139-
Debug.Log(obj.GetType().BaseType.ToString() + ":" + obj.name);
3140-
31413138
PlayableDirector pd = obj.GetComponent<PlayableDirector>();
31423139
if (pd != null)
31433140
{
@@ -3147,12 +3144,10 @@ static void OnGameObjectWithTimelineContextClick(MenuCommand command)
31473144

31483145
GameObject atObject = pd.GetGenericBinding(output.sourceObject) as GameObject;
31493146
// One file by animation clip
3150-
foreach(TimelineClip timeLineClip in at.GetClips())
3151-
{
3152-
string filePath = folderPath + "/" + atObject.name + "@" + timeLineClip.animationClip.name + ".fbx";
3153-
UnityEngine.Object[] myArray = new UnityEngine.Object[] { atObject, timeLineClip.animationClip };
3154-
Debug.Log("filepath: " + filePath);
3155-
ExportObjects(filePath, myArray, AnimationExportType.timelineAnimationClip);
3147+
foreach (TimelineClip timeLineClip in at.GetClips()) {
3148+
string filePath = folderPath + "/" + atObject.name + "@" + timeLineClip.animationClip.name + ".fbx";
3149+
UnityEngine.Object[] myArray = new UnityEngine.Object[] { atObject, timeLineClip.animationClip };
3150+
ExportObjects (filePath, myArray, AnimationExportType.timelineAnimationClip);
31563151

31573152
}
31583153
}

0 commit comments

Comments
 (0)