Commit: 539c140b3ee695ba14c3bad80a0115eff44535d8 Author: Campbell Barton Date: Thu Sep 6 10:47:10 2018 +1000 Branches: blender2.8 https://developer.blender.org/rB539c140b3ee695ba14c3bad80a0115eff44535d8
Correct build errors =================================================================== M source/blender/python/gpu/gpu_py_offscreen.c M source/blender/python/gpu/gpu_py_vertex_buffer.c =================================================================== diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index 36d03240786..fc1bc274845 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -41,6 +41,7 @@ #include "BKE_scene.h" #include "DNA_screen_types.h" +#include "DNA_scene_types.h" #include "DNA_view3d_types.h" #include "GPU_framebuffer.h" diff --git a/source/blender/python/gpu/gpu_py_vertex_buffer.c b/source/blender/python/gpu/gpu_py_vertex_buffer.c index cc67afa4342..40963e9551b 100644 --- a/source/blender/python/gpu/gpu_py_vertex_buffer.c +++ b/source/blender/python/gpu/gpu_py_vertex_buffer.c @@ -39,50 +39,6 @@ #include "gpu_py_vertex_format.h" #include "gpu_py_vertex_buffer.h" /* own include */ -/* -------------------------------------------------------------------- */ - -/** \name Enum Conversion - * - * Use with PyArg_ParseTuple's "O&" formatting. - * \{ */ - -static int bpygpu_ParseVertFetchMode(PyObject *o, void *p) -{ - Py_ssize_t mode_id_len; - const char *mode_id = _PyUnicode_AsStringAndSize(o, &mode_id_len); - if (mode_id == NULL) { - PyErr_Format(PyExc_ValueError, - "expected a string, got %s", - Py_TYPE(o)->tp_name); - return 0; - } -#define MATCH_ID(id) \ - if (mode_id_len == strlen(STRINGIFY(id))) { \ - if (STREQ(mode_id, STRINGIFY(id))) { \ - mode = GPU_FETCH_##id; \ - goto success; \ - } \ - } ((void)0) - - GPUVertFetchMode mode; - MATCH_ID(FLOAT); - MATCH_ID(INT); - MATCH_ID(INT_TO_FLOAT_UNIT); - MATCH_ID(INT_TO_FLOAT); -#undef MATCH_ID - PyErr_Format(PyExc_ValueError, - "unknown type literal: '%s'", - mode_id); - return 0; - -success: - (*(GPUVertFetchMode *)p) = mode; - return 1; -} - -/** \} */ - - /* -------------------------------------------------------------------- */ /** \name Utility Functions _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs