diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-03-06 14:08:03 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-03-06 14:11:55 +0300 |
commit | 297261eb906c56c7decf4401e6a3e06cec1691e8 (patch) | |
tree | f9833fb55af46edc0bc3849cffeb2dee83a3c6c9 /source/blender/python | |
parent | 9fa29fe7652a9adc4a11ba3dc2975595489f7bcd (diff) |
CodeCleanup: Added enums to opengl render functions
Motivation the functions get 3 different kind of flag parameters (ImBuf,
DrawType, OffscreenRendering) the naming of the flags were not clear,
leading to mistakes and unnecessary time spend debugging.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/gpu/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/blender/python/gpu/gpu_py_offscreen.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/gpu/CMakeLists.txt b/source/blender/python/gpu/CMakeLists.txt index 22a3d3a79de..7f6fd9eefab 100644 --- a/source/blender/python/gpu/CMakeLists.txt +++ b/source/blender/python/gpu/CMakeLists.txt @@ -19,7 +19,9 @@ set(INC . ../../blenkernel ../../blenlib + ../../editors/include ../../gpu + ../../imbuf ../../makesdna ../../../../intern/glew-mx ../../../../intern/guardedalloc diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index 7e371d4f774..b0e0dd27c7d 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -43,7 +43,8 @@ #include "GPU_framebuffer.h" #include "GPU_texture.h" -#include "../editors/include/ED_view3d.h" +#include "ED_view3d.h" +#include "ED_view3d_offscreen.h" #include "../mathutils/mathutils.h" |