Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2018-11-19 15:16:27 +0300
committermano-wii <germano.costa@ig.com.br>2018-11-19 15:16:27 +0300
commit3f59bdc1bd0a380d464896e982204ba48c50e3b1 (patch)
treeb0ab898ee22e064a28d5b0d18639b8f76dc87746 /source/blender/python/gpu/gpu_py_offscreen.h
parentd2560dc614fd07b5b69cba4acd3c75cb9c8e473b (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.h1
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);