@@ -102,8 +102,8 @@ public override void OnInspectorGUI() {
102
102
103
103
GUILayout . BeginHorizontal ( ) ;
104
104
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." ) ) ;
107
107
108
108
// dropdown to select Maya version to use
109
109
var options = ExportSettings . GetDCCOptions ( ) ;
@@ -130,18 +130,18 @@ public override void OnInspectorGUI() {
130
130
131
131
// check that the path is valid and references the maya executable
132
132
if ( ! string . IsNullOrEmpty ( dccPath ) ) {
133
- bool foundMax = false ;
133
+ ExportSettings . DCCType foundDCC = ExportSettings . DCCType . Maya ;
134
134
var foundDCCPath = TryFindDCC ( dccPath , ext , ExportSettings . DCCType . Maya ) ;
135
135
if ( foundDCCPath == null && Application . platform == RuntimePlatform . WindowsEditor ) {
136
136
foundDCCPath = TryFindDCC ( dccPath , ext , ExportSettings . DCCType . Max ) ;
137
- foundMax = true ;
137
+ foundDCC = ExportSettings . DCCType . Max ;
138
138
}
139
139
if ( foundDCCPath == null ) {
140
140
Debug . LogError ( string . Format ( "Could not find supported DCC application at: \" {0}\" " , Path . GetDirectoryName ( dccPath ) ) ) ;
141
141
exportSettings . selectedDCCApp = oldValue ;
142
142
} else {
143
143
dccPath = foundDCCPath ;
144
- ExportSettings . AddDCCOption ( dccPath , foundMax ? ExportSettings . DCCType . Max : ExportSettings . DCCType . Maya ) ;
144
+ ExportSettings . AddDCCOption ( dccPath , foundDCC ) ;
145
145
}
146
146
Repaint ( ) ;
147
147
} else {
0 commit comments