Fix of change from e6ccff1044 Pull Request: https://projects.blender.org/blender/blender/pulls/122434
e6ccff1044