Skip to content

Commit 9d0d142

Browse files
committed
fix so use of CanInstall() reflects function name
1 parent 4f9208d commit 9d0d142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public override void OnInspectorGUI() {
179179
EditorGUILayout.Space();
180180

181181
// disable button if no 3D application is available
182-
EditorGUI.BeginDisabledGroup (ExportSettings.CanInstall()? true : false);
182+
EditorGUI.BeginDisabledGroup (!ExportSettings.CanInstall());
183183
var installIntegrationContent = new GUIContent(
184184
"Install Unity Integration",
185185
"Install and configure the Unity integration for the selected 3D application so that you can import and export directly with this project.");
@@ -739,7 +739,7 @@ public static string GetSelectedDCCName()
739739

740740
public static bool CanInstall()
741741
{
742-
return instance.dccOptionPaths.Count <= 0;
742+
return instance.dccOptionPaths.Count > 0;
743743
}
744744

745745
/// <summary>

0 commit comments

Comments
 (0)