Skip to content

Commit de22736

Browse files
committed
Removed commented code
1 parent 0e5c738 commit de22736

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,42 +3065,6 @@ public static void ExportSingleTimelineClip(TimelineClip timelineClipSelected, G
30653065
ExportModelEditorWindow.Init (exportArray, string.Format (AnimFbxFormat, animationTrackGObject.name, timelineClipSelected.displayName), isTimelineAnim: true);
30663066
}
30673067

3068-
/// <summary>
3069-
/// Add an option " GameObject/Export All Recorded Animation Clips..." in the contextual GameObject menu.
3070-
/// </summary>
3071-
/// Disabled temporarily
3072-
/*[MenuItem(ClipMenuItemName, false, 31)]
3073-
public static void OnPlayableDirectorGameObjectContextClick(MenuCommand command)
3074-
{
3075-
Object[] selection = null;
3076-
3077-
if (command == null || command.context == null)
3078-
{
3079-
// We were actually invoked from the top GameObject menu, so use the selection.
3080-
selection = Selection.GetFiltered<Object>(SelectionMode.Editable | SelectionMode.TopLevel);
3081-
}
3082-
else
3083-
{
3084-
// We were invoked from the right-click menu, so use the context of the context menu.
3085-
GameObject selected = command.context as GameObject;
3086-
if (selected)
3087-
{
3088-
selection = new GameObject[] { selected };
3089-
}
3090-
}
3091-
3092-
var playableDirectors = new List<UnityEngine.Object> ();
3093-
foreach (GameObject objectWithPlayableDirector in selection)
3094-
{
3095-
PlayableDirector pd = objectWithPlayableDirector.GetComponent<PlayableDirector>();
3096-
if (pd == null) {
3097-
continue;
3098-
}
3099-
playableDirectors.Add (objectWithPlayableDirector);
3100-
}
3101-
ExportModelEditorWindow.Init (playableDirectors, "(automatic)", isTimelineAnim:true, isPlayableDirector:true);
3102-
}*/
3103-
31043068
public static void ExportAllTimelineClips(GameObject objectWithPlayableDirector, string folderPath, IExportOptions exportOptions = null)
31053069
{
31063070
PlayableDirector pd = objectWithPlayableDirector.GetComponent<PlayableDirector>();
@@ -3126,32 +3090,6 @@ public static void ExportAllTimelineClips(GameObject objectWithPlayableDirector,
31263090
}
31273091
}
31283092
}
3129-
3130-
/// <summary>
3131-
/// Validate the menu item defined by the function OnPlayableDirectorGameObjectContextClick.
3132-
/// </summary>
3133-
/// Disabled temporarily
3134-
/*[MenuItem(ClipMenuItemName, true, 31)]
3135-
public static bool ValidateClipContextClick()
3136-
{
3137-
Object[] selection = Selection.objects;
3138-
3139-
if (selection == null || selection.Length == 0)
3140-
{
3141-
return false;
3142-
}
3143-
3144-
foreach (Object obj in selection)
3145-
{
3146-
GameObject gameObj = obj as GameObject;
3147-
if (gameObj != null && gameObj.GetComponent<PlayableDirector>() != null)
3148-
{
3149-
return true;
3150-
}
3151-
}
3152-
3153-
return false;
3154-
}*/
31553093

31563094
/// <summary>
31573095
/// Add a menu item "Export Model..." to a GameObject's context menu.

0 commit comments

Comments
 (0)