System Information
Operating system: Linux-5.16.14-arch1-1-x86_64-with-glibc2.35 64 Bits
Graphics card: AMD Radeon RX 570 Series (POLARIS10, DRM 3.44.0, 5.16.14-arch1-1, LLVM 13.0.1) AMD 4.6 (Core Profile) Mesa 21.3.7
Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: rBc77597cd0e15
Worked: "Blender v3.0.0 Release Candidate", written in the last file that exported correctly
Short description of error
Exporting to .obj with "Material Groups" checkbox filled does not write any material groups data into the resulting file.
Exact steps for others to reproduce the error
Assign a few materials to the default cube's material slots, export with "Material Groups" checked. The resulting file does not contain any material group data.
In the 3.0 obj exporter, material groups option was producing .obj file with lines like:
g Cube_Cube_Blue usemtl Blue
but in the new exporter there's no g line corresponding to the material group.