private void EnlightenBakeSettings()
{
SerializedObject serializedObject = new SerializedObject(LightmapEditorSettings.GetLightmapSettings());
SerializedProperty serializedProperty = serializedObject.FindProperty("m_GISettings.m_EnableRealtimeLightmaps");
SerializedProperty serializedProperty2 = serializedObject.FindProperty("m_GISettings.m_EnableBakedLightmaps");
bool boolValue = serializedProperty.boolValue;
this.RealtimeGUI(serializedObject, serializedProperty);
this.BakedGUI(serializedObject, serializedProperty.boolValue, serializedProperty2);
this.GeneralSettingsGUI(serializedObject, serializedProperty.boolValue, serializedProperty2.boolValue);
if (serializedProperty2.boolValue && serializedProperty.boolValue && !boolValue)
{
Lightmapping.ClearPrecompSetIsDone();
}
serializedObject.ApplyModifiedProperties();
}