Python: Unable to use gpu.state.scissor_test_set.

`scissor_test_set` wasn't able to parse the arguments that were
passed correctly, due to incorrect control data during functino
registration.

This patch uses the correct control data during registration and
is able to parse arguments.

Ref: #104911

Pull Request: blender/blender#105850
This commit is contained in:
2023-03-17 08:03:55 +01:00
parent c169f67dc1
commit 4892a132bc

View File

@@ -470,7 +470,7 @@ static struct PyMethodDef pygpu_state__tp_methods[] = {
pygpu_state_scissor_get_doc},
{"scissor_test_set",
(PyCFunction)pygpu_state_scissor_test_set,
METH_VARARGS,
METH_O,
pygpu_state_scissor_test_set_doc},
{"line_width_set",
(PyCFunction)pygpu_state_line_width_set,