Skip to content

Commit dcc7aaa

Browse files
author
AJubrey
committed
[REMOVED] deprecated "oldvalue" variable
1 parent 6b343cd commit dcc7aaa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public override void OnInspectorGUI() {
9696
// dropdown to select Maya version to use
9797
var options = ExportSettings.GetDCCOptions();
9898

99-
int oldValue = exportSettings.selectedDCCApp;
10099
exportSettings.selectedDCCApp = EditorGUILayout.Popup(exportSettings.selectedDCCApp, options);
101100
if (GUILayout.Button("Browse", EditorStyles.miniButton, GUILayout.Width(BrowseButtonWidth))) {
102101
var ext = "";
@@ -124,7 +123,6 @@ public override void OnInspectorGUI() {
124123
// Therefore check both executable folder (for Mac) and its parent (for Windows)
125124
if (md.Name.ToLower().StartsWith("mayalt") || md.Parent.Name.ToLower ().StartsWith ("mayalt")) {
126125
Debug.LogError (string.Format("Unity Integration does not support Maya LT: \"{0}\"", md.FullName));
127-
exportSettings.selectedDCCApp = oldValue;
128126
return;
129127
}
130128

@@ -138,7 +136,6 @@ public override void OnInspectorGUI() {
138136
}
139137
if (foundDCCPath == null) {
140138
Debug.LogError (string.Format ("Could not find supported 3D application at: \"{0}\"", Path.GetDirectoryName (dccPath)));
141-
exportSettings.selectedDCCApp = oldValue;
142139
} else {
143140
dccPath = foundDCCPath;
144141
ExportSettings.AddDCCOption (dccPath, foundDCC);

0 commit comments

Comments
 (0)