diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-19 14:12:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-19 14:12:48 +0300 |
commit | cadc1218c8c8932464eacf0d6a75330e8ac45266 (patch) | |
tree | 41761e87faedb7bcd1d0c86237df690ff4f3b5af /source/blender/python/intern/bpy_util.c | |
parent | ff1656175ac6a408bef1b77abd91406cdf895c93 (diff) |
C, style changes (mostly white space edits), no functional change.
Diffstat (limited to 'source/blender/python/intern/bpy_util.c')
-rw-r--r-- | source/blender/python/intern/bpy_util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/intern/bpy_util.c b/source/blender/python/intern/bpy_util.c index ccbee2abcd1..0d3b036850d 100644 --- a/source/blender/python/intern/bpy_util.c +++ b/source/blender/python/intern/bpy_util.c @@ -37,7 +37,7 @@ #include "../generic/py_capi_utils.h" -static bContext* __py_context = NULL; +static bContext* __py_context= NULL; bContext* BPy_GetContext(void) { return __py_context; } void BPy_SetContext(bContext *C) { __py_context= C; } @@ -52,7 +52,7 @@ char *BPy_enum_as_string(EnumPropertyItem *item) BLI_dynstr_appendf(dynstr, (e==item)?"'%s'":", '%s'", item->identifier); } - cstring = BLI_dynstr_get_cstring(dynstr); + cstring= BLI_dynstr_get_cstring(dynstr); BLI_dynstr_free(dynstr); return cstring; } @@ -146,19 +146,19 @@ int PyC_AsArray(void *array, PyObject *value, int length, PyTypeObject *type, co if(type == &PyFloat_Type) { float *array_float= array; for(i=0; i<length; i++) { - array_float[i] = PyFloat_AsDouble(PySequence_Fast_GET_ITEM(value_fast, i)); + array_float[i]= PyFloat_AsDouble(PySequence_Fast_GET_ITEM(value_fast, i)); } } else if(type == &PyLong_Type) { int *array_int= array; for(i=0; i<length; i++) { - array_int[i] = PyLong_AsSsize_t(PySequence_Fast_GET_ITEM(value_fast, i)); + array_int[i]= PyLong_AsSsize_t(PySequence_Fast_GET_ITEM(value_fast, i)); } } else if(type == &PyBool_Type) { int *array_bool= array; for(i=0; i<length; i++) { - array_bool[i] = (PyLong_AsSsize_t(PySequence_Fast_GET_ITEM(value_fast, i)) != 0); + array_bool[i]= (PyLong_AsSsize_t(PySequence_Fast_GET_ITEM(value_fast, i)) != 0); } } else { |