Blender Git Loki

Git Commits -> Revision 04b6296

Revision 04b6296 by Germano Cavalcante (master)
April 30, 2021, 13:42 (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: 04b6296e8165736d17fb5167e45a93178f9f71c2
Parent Commit: c96506d
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021