The first check for `materials.queued_shaders_count > 0` was done before any synchronization, so it would always pass. Pull Request: https://projects.blender.org/blender/blender/pulls/131756
The first check for `materials.queued_shaders_count > 0` was done before any synchronization, so it would always pass. Pull Request: https://projects.blender.org/blender/blender/pulls/131756