Blender Git Commit Log

Git Commits -> Revision 1376262

May 1, 2021, 08:12 (GMT)
Python GPU: Add reference of PyObject GPU object to the GPU object itself

Instead of creating different python wrappers for the same GPU object,
return the same `PyObject` created earlier.

This also allows for more secure access to existing GPU objects.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D11044

Commit Details:

Full Hash: 1376262d874ba4bd0a74b55f34bdbd7e382da3aa
Parent Commit: 3afcf77
Committed By: YimingWu
Lines Changed: +142, -24

11 Modified Paths:

/source/blender/gpu/GPU_common.h (+1, -0) (Diff)
/source/blender/gpu/GPU_framebuffer.h (+5, -0) (Diff)
/source/blender/gpu/GPU_texture.h (+6, -0) (Diff)
/source/blender/gpu/intern/gpu_framebuffer.cc (+19, -0) (Diff)
/source/blender/gpu/intern/gpu_framebuffer_private.hh (+9, -0) (Diff)
/source/blender/gpu/intern/gpu_texture.cc (+19, -0) (Diff)
/source/blender/gpu/intern/gpu_texture_private.hh (+7, -0) (Diff)
/source/blender/python/gpu/gpu_py_framebuffer.c (+42, -16) (Diff)
/source/blender/python/gpu/gpu_py_framebuffer.h (+6, -1) (Diff)
/source/blender/python/gpu/gpu_py_texture.c (+26, -6) (Diff)
/source/blender/python/gpu/gpu_py_texture.h (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021