Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Dec 30, 2023
1 parent 8ce0ab4 commit 9a1d186
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Runtime/Scripts/GLTFSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,18 @@ internal static void DrawGLTFSettingsGUI()
m_SerializedObject.ApplyModifiedProperties();
}

EditorGUILayout.Space();
EditorGUILayout.LabelField("Import Extensions and Plugins", EditorStyles.boldLabel);
OnPluginsGUI(settings.ImportPlugins);

EditorGUILayout.Space();
EditorGUILayout.LabelField("Export Extensions and Plugins", EditorStyles.boldLabel);
OnPluginsGUI(settings.ExportPlugins);

EditorGUILayout.Space();
EditorGUILayout.LabelField("Import Extensions and Plugins", EditorStyles.boldLabel);
OnPluginsGUI(settings.ImportPlugins);

// Only for testing - all extension registry items should also show up via Plugins above
/*
EditorGUILayout.LabelField("Supported Extensions (Import)", EditorStyles.boldLabel);
EditorGUILayout.LabelField("Registered Deserialization Extensions", EditorStyles.boldLabel);
// All plugins in the extension factory are supported for import.
// TODO Some of them have extra package requirements (e.g. meshopt/draco), could be shown here
// TODO help buttons and docs/tooltip would be great
foreach (var ext in GLTFProperty.RegisteredExtensions)
{
EditorGUILayout.ToggleLeft(ext, true);
Expand Down Expand Up @@ -165,7 +163,7 @@ internal static void OnPluginsGUI(IEnumerable<GltfPlugin> plugins)
EditorGUI.EndDisabledGroup();
EditorGUI.indentLevel -= 1;
}
EditorGUILayout.EndFoldoutHeaderGroup();
GUILayout.Space(2);
}

EditorGUI.indentLevel--;
Expand Down

0 comments on commit 9a1d186

Please sign in to comment.