PyAPI: Gawain: Checks the member data instead vbo_id.

After recent changes in gawain, `vbo_id` is now assigned in VertBuf creation.
This commit is contained in:
2018-04-13 10:47:49 -03:00
parent 3765653b38
commit 8245c4fd66

View File

@@ -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;
}