Cleanup: style, duplicate includes

This commit is contained in:
2017-10-07 15:57:14 +11:00
parent 37b457221e
commit adfbf276a1
73 changed files with 227 additions and 234 deletions

View File

@@ -18,8 +18,8 @@
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef __GWN_PY_API__
#define __GWN_PY_API__
#ifndef __GWN_PY_API_H__
#define __GWN_PY_API_H__
/** \file blender/python/gawain/gwn_py_api.h
* \ingroup pygawain
@@ -27,4 +27,4 @@
PyObject *BPyInit_gawain(void);
#endif /* __GWN_PY_API__ */
#endif /* __GWN_PY_API_H__ */

View File

@@ -647,7 +647,7 @@ static PyObject *bpygwn_VertBatch_uniform_f32(BPyGwn_Batch *self, PyObject *args
return NULL;
}
switch(PyTuple_GET_SIZE(args)) {
switch (PyTuple_GET_SIZE(args)) {
case 2: GWN_batch_uniform_1f(self->batch, params.id, params.values[0]); break;
case 3: GWN_batch_uniform_2fv(self->batch, params.id, params.values); break;
case 4: GWN_batch_uniform_3fv(self->batch, params.id, params.values); break;