From c627ea9aca53d9a3f96fbf4bb45da8a2b17af5b7 Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Wed, 1 Oct 2025 11:18:26 +0200 Subject: [PATCH] Fix #147067: gpu.types.GPUFrameBuffer absent in latest 5.0 build Mistake in 9d0fe5573bc53e49d2fe45a2929a685a15ca9b4a Pull Request: https://projects.blender.org/blender/blender/pulls/147099 --- source/blender/python/gpu/gpu_py_framebuffer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/python/gpu/gpu_py_framebuffer.cc b/source/blender/python/gpu/gpu_py_framebuffer.cc index 62020d777f8..d147faccc95 100644 --- a/source/blender/python/gpu/gpu_py_framebuffer.cc +++ b/source/blender/python/gpu/gpu_py_framebuffer.cc @@ -347,7 +347,7 @@ static PyObject *pygpu_framebuffer__tp_new(PyTypeObject * /*self*/, PyObject *ar "|$" /* Optional keyword only arguments. */ "O" /* `depth_slot` */ "O" /* `color_slots` */ - ":gpu::FrameBuffer.__new__", + ":GPUFrameBuffer.__new__", _keywords, nullptr, }; @@ -804,7 +804,7 @@ static PyMethodDef pygpu_framebuffer__tp_methods[] = { PyDoc_STRVAR( /* Wrap. */ pygpu_framebuffer__tp_doc, - ".. class:: gpu::FrameBuffer(*, depth_slot=None, color_slots=None)\n" + ".. class:: GPUFrameBuffer(*, depth_slot=None, color_slots=None)\n" "\n" " This object gives access to framebuffer functionalities.\n" " When a 'layer' is specified in a argument, a single layer of a 3D or array " @@ -823,7 +823,7 @@ PyDoc_STRVAR( "None\n"); PyTypeObject BPyGPUFrameBuffer_Type = { /*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0) - /*tp_name*/ "gpu::FrameBuffer", + /*tp_name*/ "GPUFrameBuffer", /*tp_basicsize*/ sizeof(BPyGPUFrameBuffer), /*tp_itemsize*/ 0, /*tp_dealloc*/ (destructor)BPyGPUFrameBuffer__tp_dealloc,