Skip to content

Commit 3f87f49

Browse files
committed
code review fixes
-generalize menu option -use DCCType instead of bool for variable
1 parent b591921 commit 3f87f49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ public override void OnInspectorGUI() {
102102

103103
GUILayout.BeginHorizontal ();
104104
GUILayout.Label (new GUIContent (
105-
"Maya Application:",
106-
"Select the version of Maya where you would like to install the Unity integration."));
105+
"DCC Application:",
106+
"Select the DCC where you would like to install the Unity integration."));
107107

108108
// dropdown to select Maya version to use
109109
var options = ExportSettings.GetDCCOptions();
@@ -130,18 +130,18 @@ public override void OnInspectorGUI() {
130130

131131
// check that the path is valid and references the maya executable
132132
if (!string.IsNullOrEmpty (dccPath)) {
133-
bool foundMax = false;
133+
ExportSettings.DCCType foundDCC = ExportSettings.DCCType.Maya;
134134
var foundDCCPath = TryFindDCC (dccPath, ext, ExportSettings.DCCType.Maya);
135135
if (foundDCCPath == null && Application.platform == RuntimePlatform.WindowsEditor) {
136136
foundDCCPath = TryFindDCC (dccPath, ext, ExportSettings.DCCType.Max);
137-
foundMax = true;
137+
foundDCC = ExportSettings.DCCType.Max;
138138
}
139139
if (foundDCCPath == null) {
140140
Debug.LogError (string.Format ("Could not find supported DCC application at: \"{0}\"", Path.GetDirectoryName (dccPath)));
141141
exportSettings.selectedDCCApp = oldValue;
142142
} else {
143143
dccPath = foundDCCPath;
144-
ExportSettings.AddDCCOption (dccPath, foundMax? ExportSettings.DCCType.Max : ExportSettings.DCCType.Maya);
144+
ExportSettings.AddDCCOption (dccPath, foundDCC);
145145
}
146146
Repaint ();
147147
} else {

0 commit comments

Comments
 (0)