How to reproduce:
1. Open the attached "IN-150684_ReproVGen.zip" project
2. In the Editor, run the reproduction script from the top of the window ("Test -> Run Repro")
3. Wait for the build to finish
4. Open the Editor log (from the Console tab, press on the three dots on the right and select "Open Editor Log)
5. In the Editor log, search for "[REPRO] A_WITHOUT_OVERRIDES SHADER" and note the variants count next to the found lines
6. Search for "[REPRO] B_WITH_OVERRIDES SHADER" and note the variants count next to the found lines
7. Compare the Repro A and Repro B variant counts
Actual result: Repro A and Repro B line variant counts are identical
Expected result: Repro B line variant counts are smaller than Repro A
Reproducible with: 6000.3.24f1, 6000.6.1f1, 6000.7.0a6
Could not test with: 6000.0.83f1 (Outdaded API errors are thrown, preventing building), 6000.3.0a5 (Build fails)
Reproducible on: macOS 26.6
Not reproducible on: No other environments tested