@@ -28,12 +28,6 @@ public abstract class ExportOptionsEditorWindow : EditorWindow
28
28
29
29
protected string m_exportFileName = "" ;
30
30
31
- private bool m_disableTransferAnim = false ;
32
- protected bool DisableTransferAnim { get { return m_disableTransferAnim ; } set { m_disableTransferAnim = value ; } }
33
-
34
- private bool m_disableNameSelection = false ;
35
- protected bool DisableNameSelection { get { return m_disableNameSelection ; } set { m_disableNameSelection = value ; } }
36
-
37
31
protected UnityEditor . Editor m_innerEditor ;
38
32
protected FbxExportPresetSelectorReceiver m_receiver ;
39
33
@@ -46,6 +40,9 @@ public abstract class ExportOptionsEditorWindow : EditorWindow
46
40
protected GUIStyle m_fbxExtLabelStyle ;
47
41
protected float m_fbxExtLabelWidth ;
48
42
43
+ protected abstract bool DisableTransferAnim { get ; }
44
+ protected abstract bool DisableNameSelection { get ; }
45
+
49
46
protected abstract EditorTools . ExportOptionsSettingsSerializeBase SettingsObject { get ; }
50
47
51
48
private UnityEngine . Object [ ] m_toExport ;
@@ -367,6 +364,16 @@ protected bool OverwriteExistingFile(string filePath){
367
364
public class ExportModelEditorWindow : ExportOptionsEditorWindow
368
365
{
369
366
protected override float MinWindowHeight { get { return 260 ; } }
367
+ protected override bool DisableNameSelection {
368
+ get {
369
+ return IsPlayableDirector ;
370
+ }
371
+ }
372
+ protected override bool DisableTransferAnim {
373
+ get {
374
+ return ToExport == null || ToExport . Length > 1 || IsPlayableDirector ;
375
+ }
376
+ }
370
377
371
378
private bool m_isTimelineAnim = false ;
372
379
protected bool IsTimelineAnim {
@@ -405,8 +412,6 @@ protected bool IsPlayableDirector {
405
412
get { return m_isPlayableDirector ; }
406
413
set {
407
414
m_isPlayableDirector = value ;
408
- DisableNameSelection = m_isPlayableDirector ;
409
- DisableTransferAnim = m_isPlayableDirector ;
410
415
}
411
416
}
412
417
@@ -442,8 +447,7 @@ protected int SetGameObjectsToExport(IEnumerable<UnityEngine.Object> toExport){
442
447
TransferAnimationSource = go . transform ;
443
448
TransferAnimationDest = go . transform ;
444
449
}
445
- }
446
- DisableTransferAnim = ToExport . Length > 1 ;
450
+ }
447
451
448
452
return ToExport . Length ;
449
453
}
0 commit comments