[Bf-blender-cvs] [8245c4fd667] blender2.8: PyAPI: Gawain: Checks the member `data` instead `vbo_id`.
Germano
noreply at git.blender.org
Fri Apr 13 15:48:20 CEST 2018
Commit: 8245c4fd667384fa1970460072c6879f9541fb5f
Author: Germano
Date: Fri Apr 13 10:47:49 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB8245c4fd667384fa1970460072c6879f9541fb5f
PyAPI: Gawain: Checks the member `data` instead `vbo_id`.
After recent changes in gawain, `vbo_id` is now assigned in VertBuf creation.
===================================================================
M source/blender/python/gawain/gwn_py_types.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list