Skip to content

Commit 47afe31

Browse files
committed
reset animation source/dest when changing export sets
1 parent 5374b48 commit 47afe31

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Assets/FbxExporters/Editor/ConvertToPrefabEditorWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public static void Init (IEnumerable<GameObject> toConvert)
3030
protected void SetGameObjectsToConvert(IEnumerable<GameObject> toConvert){
3131
ToExport = toConvert.OrderBy (go => go.name).ToArray ();
3232

33+
TransferAnimationSource = null;
34+
TransferAnimationDest = null;
35+
3336
if (ToExport.Length == 1) {
3437
m_prefabFileName = ToExport [0].name;
3538

Assets/FbxExporters/Editor/ExportModelEditorWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ public static void Init (IEnumerable<UnityEngine.Object> toExport, string filena
432432
protected int SetGameObjectsToExport(IEnumerable<UnityEngine.Object> toExport){
433433
ToExport = toExport.ToArray ();
434434

435+
TransferAnimationSource = null;
436+
TransferAnimationDest = null;
437+
435438
// if only one object selected, set transfer source/dest to this object
436439
if (ToExport.Length == 1) {
437440
var go = ModelExporter.GetGameObject (ToExport [0]);

0 commit comments

Comments
 (0)