PyAPI: GPUOffscreen: Add context manager for the bind method to work with the with statement.

Differential Revision: https://developer.blender.org/D3918
This commit is contained in:
2018-11-19 10:16:27 -02:00
parent d2560dc614
commit 3f59bdc1bd
2 changed files with 46 additions and 18 deletions

View File

@@ -34,6 +34,7 @@ extern PyTypeObject BPyGPUOffScreen_Type;
typedef struct BPyGPUOffScreen {
PyObject_HEAD
struct GPUOffScreen *ofs;
bool is_saved;
} BPyGPUOffScreen;
PyObject *BPyGPUOffScreen_CreatePyObject(struct GPUOffScreen *ofs) ATTR_NONNULL(1);