[Bf-blender-cvs] [e77a1dc6b00] master: Fix name used when parsing arguments

Germano Cavalcante noreply at git.blender.org
Thu Jul 22 20:29:13 CEST 2021


Commit: e77a1dc6b00d24e11e9da74b4609c2fdaffe9a69
Author: Germano Cavalcante
Date:   Thu Jul 22 15:29:09 2021 -0300
Branches: master
https://developer.blender.org/rBe77a1dc6b00d24e11e9da74b4609c2fdaffe9a69

Fix name used when parsing arguments

===================================================================

M	source/blender/python/gpu/gpu_py_framebuffer.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list