Conversion of GPv2 operator. Related to #114997 Pull Request: https://projects.blender.org/blender/blender/pulls/115272