[Bf-blender-cvs] [ccff7c3c828] blender2.8: PyAPI: Minor gawain corrections

Campbell Barton noreply at git.blender.org
Tue Aug 22 10:13:56 CEST 2017


Commit: ccff7c3c828ec81c740fe0e0cde0011d27e30021
Author: Campbell Barton
Date:   Tue Aug 22 14:53:20 2017 +1000
Branches: blender2.8
https://developer.blender.org/rBccff7c3c828ec81c740fe0e0cde0011d27e30021

PyAPI: Minor gawain corrections

===================================================================

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 602c615738f..ef032a6e935 100644
--- a/source/blender/python/gawain/gwn_py_types.c
+++ b/source/blender/python/gawain/gwn_py_types.c
@@ -602,9 +602,9 @@ static PyObject *bpygwn_VertBatch_uniform_bool(BPyGwn_Batch *self, PyObject *arg
 	} params;
 
 	if (!PyArg_ParseTuple(
-	        args, "si:uniform_b",
+	        args, "sO&:uniform_bool",
 	        &params.id,
-	        &params.values[0]))
+	        PyC_ParseBool, &params.values[0]))
 	{
 		return NULL;
 	}
@@ -621,7 +621,7 @@ static PyObject *bpygwn_VertBatch_uniform_i32(BPyGwn_Batch *self, PyObject *args
 	} params;
 
 	if (!PyArg_ParseTuple(
-	        args, "si:uniform_i",
+	        args, "si:uniform_i32",
 	        &params.id,
 	        &params.values[0]))
 	{
@@ -634,13 +634,13 @@ static PyObject *bpygwn_VertBatch_uniform_i32(BPyGwn_Batch *self, PyObject *args
 
 static PyObject *bpygwn_VertBatch_uniform_f32(BPyGwn_Batch *self, PyObject *args)
 {
-	struct {
+	static struct {
 		const char *id;
 		float values[4];
 	} params;
 
 	if (!PyArg_ParseTuple(
-	        args, "sf|fff:uniform_f",
+	        args, "sf|fff:uniform_f32",
 	        &params.id,
 	        &params.values[0], &params.values[1], &params.values[2], &params.values[3]))
 	{



More information about the Bf-blender-cvs mailing list