From 8245c4fd667384fa1970460072c6879f9541fb5f Mon Sep 17 00:00:00 2001 From: Germano Date: Fri, 13 Apr 2018 10:47:49 -0300 Subject: [PATCH] PyAPI: Gawain: Checks the member `data` instead `vbo_id`. After recent changes in gawain, `vbo_id` is now assigned in VertBuf creation. --- source/blender/python/gawain/gwn_py_types.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/python/gawain/gwn_py_types.c b/source/blender/python/gawain/gwn_py_types.c index 3146993d665..9ddad009a12 100644 --- a/source/blender/python/gawain/gwn_py_types.c +++ b/source/blender/python/gawain/gwn_py_types.c @@ -447,9 +447,9 @@ static PyObject *bpygwn_VertBuf_fill(BPyGwn_VertBuf *self, PyObject *args, PyObj return NULL; } - if (self->buf->vbo_id != 0) { + if (self->buf->data == NULL) { PyErr_SetString(PyExc_ValueError, - "Can't fill, buffer already in use"); + "Can't fill, static buffer already in use"); return NULL; }