How to reproduce:
1. Open the attached "IN-151507" project
2. Open the Assets > Scenes > "SampleScene" scene
3. Note that the cube renders green in the Scene view
4. Open Assets folder in Windows FIile explorer
5. Move out files of project folder or delete “DELETE_THIS_MATERIAL_THEN_RESTORE_IT.mat” and “DELETE_THIS_MATERIAL_THEN_RESTORE_IT.mat.meta”
6. Go back to Editor window
7. Note that the cube renders magenta in the Scene view
8. Bring back the deleted material and its .meta file to the Assets folder
9. Observe the cube in the Scene view and the Console
Actual result: The cube stays magenta and the Console logs "A BatchDrawCommand was submitted with an invalid Batch, Mesh, or Material ID"; the SubScene is not rebaked, so the restored material is never applied
Expected result: The SubScene rebakes and the cube returns to green
Reproducible with: 1.2.4 (6000.0.0f1), 1.4.21 (6000.3.24f1), 6000.6.1f1, 6000.7.0a6
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Workaround:
1. Click on the subscene in the hierarchy and click "Open" - the cube becomes green
2. Close the subscene - observe that the cube becomes magenta again
3. Open the subscene again and move the cube a bit (this triggers a rebake)
4. Close the subscene - cube is now green because it was rebaked