**Blender Version**
Worked: 3.3.1
Broken: 3.4
**Short description of error**
Object has a shrinkwrap modifier targeted to an object which is located in excluded or disabled collection. If you try to apply this modifier nothing happens, like it skips procedure. But if that collection was only hidden and not excluded or disabled then apply function performs correctly.
**Exact steps for others to reproduce the error**
- Open attached file or
- Make a duplicate of a default cube, increase scale of a copy x2 and put it in another collection ("Collection 2")
- Exclude or disable "Collection 2"
- Add shrinkwrap to the first cube and choose second one as a target
- Disable modifier's viewport rendering
- Apply modifier -> nothing happens
- Undo operation with Ctrl Z
- Include or enable "Collection 2" back and hide it
- Apply modifier -> applied correctly
{F13705676}