Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine")
This commit is contained in:
@@ -307,8 +307,8 @@ static PyObject *M_Noise_random_unit_vector(PyObject *UNUSED(self), PyObject *ar
|
||||
float norm = 2.0f;
|
||||
int vec_num = 3;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kw, "|$i:random_unit_vector", (char **)kwlist, &vec_num)) {
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kw, "|$i:random_unit_vector", (char **)kwlist, &vec_num))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -392,7 +392,8 @@ static PyObject *M_Noise_noise(PyObject *UNUSED(self), PyObject *args, PyObject
|
||||
int noise_basis_enum = DEFAULT_NOISE_TYPE;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kw, "O|$s:noise", (char **)kwlist, &value, &noise_basis_str)) {
|
||||
args, kw, "O|$s:noise", (char **)kwlist, &value, &noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -400,7 +401,8 @@ static PyObject *M_Noise_noise(PyObject *UNUSED(self), PyObject *args, PyObject
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(bpy_noise_types, noise_basis_str, &noise_basis_enum, "noise") ==
|
||||
-1) {
|
||||
-1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -431,7 +433,8 @@ static PyObject *M_Noise_noise_vector(PyObject *UNUSED(self), PyObject *args, Py
|
||||
int noise_basis_enum = DEFAULT_NOISE_TYPE;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kw, "O|$s:noise_vector", (char **)kwlist, &value, &noise_basis_str)) {
|
||||
args, kw, "O|$s:noise_vector", (char **)kwlist, &value, &noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -439,7 +442,8 @@ static PyObject *M_Noise_noise_vector(PyObject *UNUSED(self), PyObject *args, Py
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "noise_vector") == -1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "noise_vector") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -490,7 +494,8 @@ static PyObject *M_Noise_turbulence(PyObject *UNUSED(self), PyObject *args, PyOb
|
||||
&hd,
|
||||
&noise_basis_str,
|
||||
&as,
|
||||
&fs)) {
|
||||
&fs))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -498,7 +503,8 @@ static PyObject *M_Noise_turbulence(PyObject *UNUSED(self), PyObject *args, PyOb
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "turbulence") == -1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "turbulence") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -547,7 +553,8 @@ static PyObject *M_Noise_turbulence_vector(PyObject *UNUSED(self), PyObject *arg
|
||||
&hd,
|
||||
&noise_basis_str,
|
||||
&as,
|
||||
&fs)) {
|
||||
&fs))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -555,7 +562,8 @@ static PyObject *M_Noise_turbulence_vector(PyObject *UNUSED(self), PyObject *arg
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "turbulence_vector") == -1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "turbulence_vector") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -595,15 +603,9 @@ static PyObject *M_Noise_fractal(PyObject *UNUSED(self), PyObject *args, PyObjec
|
||||
float H, lac, oct;
|
||||
int noise_basis_enum = DEFAULT_NOISE_TYPE;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,
|
||||
kw,
|
||||
"Offf|$s:fractal",
|
||||
(char **)kwlist,
|
||||
&value,
|
||||
&H,
|
||||
&lac,
|
||||
&oct,
|
||||
&noise_basis_str)) {
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kw, "Offf|$s:fractal", (char **)kwlist, &value, &H, &lac, &oct, &noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -611,7 +613,8 @@ static PyObject *M_Noise_fractal(PyObject *UNUSED(self), PyObject *args, PyObjec
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "fractal") == -1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "fractal") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -657,7 +660,8 @@ static PyObject *M_Noise_multi_fractal(PyObject *UNUSED(self), PyObject *args, P
|
||||
&H,
|
||||
&lac,
|
||||
&oct,
|
||||
&noise_basis_str)) {
|
||||
&noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -665,7 +669,8 @@ static PyObject *M_Noise_multi_fractal(PyObject *UNUSED(self), PyObject *args, P
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "multi_fractal") == -1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "multi_fractal") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -716,7 +721,8 @@ static PyObject *M_Noise_variable_lacunarity(PyObject *UNUSED(self), PyObject *a
|
||||
&value,
|
||||
&d,
|
||||
&noise_type1_str,
|
||||
&noise_type2_str)) {
|
||||
&noise_type2_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -724,7 +730,8 @@ static PyObject *M_Noise_variable_lacunarity(PyObject *UNUSED(self), PyObject *a
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_type1_str, &noise_type1_enum, "variable_lacunarity") == -1) {
|
||||
bpy_noise_types, noise_type1_str, &noise_type1_enum, "variable_lacunarity") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -732,12 +739,13 @@ static PyObject *M_Noise_variable_lacunarity(PyObject *UNUSED(self), PyObject *a
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_type2_str, &noise_type2_enum, "variable_lacunarity") == -1) {
|
||||
bpy_noise_types, noise_type2_str, &noise_type2_enum, "variable_lacunarity") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (mathutils_array_parse(vec, 3, 3, value, "variable_lacunarity: invalid 'position' arg") ==
|
||||
-1) {
|
||||
if (mathutils_array_parse(vec, 3, 3, value, "variable_lacunarity: invalid 'position' arg") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -782,7 +790,8 @@ static PyObject *M_Noise_hetero_terrain(PyObject *UNUSED(self), PyObject *args,
|
||||
&lac,
|
||||
&oct,
|
||||
&ofs,
|
||||
&noise_basis_str)) {
|
||||
&noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -790,7 +799,8 @@ static PyObject *M_Noise_hetero_terrain(PyObject *UNUSED(self), PyObject *args,
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "hetero_terrain") == -1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "hetero_terrain") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -842,7 +852,8 @@ static PyObject *M_Noise_hybrid_multi_fractal(PyObject *UNUSED(self), PyObject *
|
||||
&oct,
|
||||
&ofs,
|
||||
&gn,
|
||||
&noise_basis_str)) {
|
||||
&noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -850,8 +861,8 @@ static PyObject *M_Noise_hybrid_multi_fractal(PyObject *UNUSED(self), PyObject *
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "hybrid_multi_fractal") ==
|
||||
-1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "hybrid_multi_fractal") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -904,7 +915,8 @@ static PyObject *M_Noise_ridged_multi_fractal(PyObject *UNUSED(self), PyObject *
|
||||
&oct,
|
||||
&ofs,
|
||||
&gn,
|
||||
&noise_basis_str)) {
|
||||
&noise_basis_str))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -912,8 +924,8 @@ static PyObject *M_Noise_ridged_multi_fractal(PyObject *UNUSED(self), PyObject *
|
||||
/* pass through */
|
||||
}
|
||||
else if (PyC_FlagSet_ValueFromID(
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "ridged_multi_fractal") ==
|
||||
-1) {
|
||||
bpy_noise_types, noise_basis_str, &noise_basis_enum, "ridged_multi_fractal") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -952,7 +964,8 @@ static PyObject *M_Noise_voronoi(PyObject *UNUSED(self), PyObject *args, PyObjec
|
||||
int i;
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kw, "O|$sf:voronoi", (char **)kwlist, &value, &metric_str, &me)) {
|
||||
args, kw, "O|$sf:voronoi", (char **)kwlist, &value, &metric_str, &me))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user