System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15
Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: rBcc66d1020c3b
Worked: (newest version of Blender that worked as expected)
Short description of error
using surface deform and then subdivision surface on a mesh, break generated texture coordinate output.
Exact steps for others to reproduce the error
On a mesh (also the default cube) add a surface deform with a mesh target and then add a subdivision surface.
In shader editor tab add a texture coordinate node and view the generated output.
Switching between the modifier visibility we can see the behaviour on the generated output when surface deform is on or off.
on previous blender version, these steps works fine
