diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-11-19 15:16:27 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-11-19 15:16:27 +0300 |
commit | 3f59bdc1bd0a380d464896e982204ba48c50e3b1 (patch) | |
tree | b0ab898ee22e064a28d5b0d18639b8f76dc87746 /source/blender/python/gpu/gpu_py_offscreen.h | |
parent | d2560dc614fd07b5b69cba4acd3c75cb9c8e473b (diff) |
PyAPI: GPUOffscreen: Add context manager for the `bind` method to work with the `with` statement.
Differential Revision: https://developer.blender.org/D3918
Diffstat (limited to 'source/blender/python/gpu/gpu_py_offscreen.h')
-rw-r--r-- | source/blender/python/gpu/gpu_py_offscreen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_offscreen.h b/source/blender/python/gpu/gpu_py_offscreen.h index 8b94671b82c..c4a2d02a694 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.h +++ b/source/blender/python/gpu/gpu_py_offscreen.h @@ -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); |