From e77a1dc6b00d24e11e9da74b4609c2fdaffe9a69 Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Thu, 22 Jul 2021 15:29:09 -0300 Subject: Fix name used when parsing arguments --- source/blender/python/gpu/gpu_py_framebuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/python/gpu/gpu_py_framebuffer.c b/source/blender/python/gpu/gpu_py_framebuffer.c index 1cffaaeeb10..a9347b71723 100644 --- a/source/blender/python/gpu/gpu_py_framebuffer.c +++ b/source/blender/python/gpu/gpu_py_framebuffer.c @@ -489,7 +489,7 @@ static PyObject *pygpu_framebuffer_read_color(BPyGPUFrameBuffer *self, static const char *_keywords[] = { "x", "y", "xsize", "ysize", "channels", "slot", "format", "data", NULL}; - static _PyArg_Parser _parser = {"iiiiiIO&|$O!:GPUTexture.__new__", _keywords, 0}; + static _PyArg_Parser _parser = {"iiiiiIO&|$O!:read_color", _keywords, 0}; if (!_PyArg_ParseTupleAndKeywordsFast(args, kwds, &_parser, @@ -572,7 +572,7 @@ static PyObject *pygpu_framebuffer_read_depth(BPyGPUFrameBuffer *self, BPyGPUBuffer *py_buffer = NULL; static const char *_keywords[] = {"x", "y", "xsize", "ysize", "data", NULL}; - static _PyArg_Parser _parser = {"iiii|$O!:GPUFrameBuffer.read_depth", _keywords, 0}; + static _PyArg_Parser _parser = {"iiii|$O!:read_depth", _keywords, 0}; if (!_PyArg_ParseTupleAndKeywordsFast( args, kwds, &_parser, &x, &y, &w, &h, &BPyGPU_BufferType, &py_buffer)) { return NULL; -- cgit v1.2.3