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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user