Skip to content

Commit a35ef27

Browse files
committed
remove unity 2017 related changes
1 parent 06f1a2d commit a35ef27

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Assets/FbxExporters/Editor/ExportModelEditorWindow.cs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ public abstract class ExportOptionsEditorWindow : EditorWindow
4141
protected float m_fbxExtLabelWidth;
4242

4343
protected virtual void OnEnable(){
44-
if (Application.unityVersion.Contains ("2018")) {
45-
InitializeReceiver ();
46-
}
44+
InitializeReceiver ();
45+
4746
m_showOptions = true;
4847
this.minSize = new Vector2 (SelectableLabelMinWidth + LabelWidth + BrowseButtonWidth, MinWindowHeight);
4948

@@ -125,14 +124,12 @@ protected void OnGUI ()
125124
// Increasing the label width so that none of the text gets cut off
126125
EditorGUIUtility.labelWidth = LabelWidth;
127126

128-
if (Application.unityVersion.Contains ("2018")) {
129-
GUILayout.BeginHorizontal ();
130-
GUILayout.FlexibleSpace ();
131-
if (EditorGUILayout.DropdownButton (presetIcon, FocusType.Keyboard, presetIconButton)) {
132-
ShowPresetReceiver ();
133-
}
134-
GUILayout.EndHorizontal ();
127+
GUILayout.BeginHorizontal ();
128+
GUILayout.FlexibleSpace ();
129+
if (EditorGUILayout.DropdownButton (presetIcon, FocusType.Keyboard, presetIconButton)) {
130+
ShowPresetReceiver ();
135131
}
132+
GUILayout.EndHorizontal ();
136133

137134
EditorGUILayout.LabelField("Naming");
138135
EditorGUI.indentLevel++;

0 commit comments

Comments
 (0)