System Information
Operating system: Linux-5.13.0-7620-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: NVIDIA GeForce RTX 3080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.86
Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: rBf1cca3055776
Worked: (newest version of Blender that worked as expected)
Short description of error
Remesh Modifier fails holding Set Material from Geometry Nodes.
Exact steps for others to reproduce the error
create two materials for the default cube;
give them distinctive colors;
add a geometry nodes to the cube;
add a set material node;
feed it with the second material slot previously created;
add a remesh modifier.
Notice the material set on the geometry nodes will fall back to the first material slot, not holding the modifier stack hierarchy.
This does not happen if you use other modifiers like bevel, subsurf, solidify, etc.