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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user