Backport #22513 Co-authored-by: Brecht Van Lommel <brecht@blender.org> (cherry picked from commit fa33271157)
fa33271157