Clang Format: bump to version 17
Along with the 4.1 libraries upgrade, we are bumping the clang-format version from 8-12 to 17. This affects quite a few files. If not already the case, you may consider pointing your IDE to the clang-format binary bundled with the Blender precompiled libraries.
This commit is contained in:
@@ -359,7 +359,8 @@ static PyObject *py_bvhtree_ray_cast(PyBVHTree *self, PyObject *args)
|
||||
/* may fail if the mesh has no faces, in that case the ray-cast misses */
|
||||
if (self->tree) {
|
||||
if (BLI_bvhtree_ray_cast(self->tree, co, direction, 0.0f, &hit, py_bvhtree_raycast_cb, self) !=
|
||||
-1) {
|
||||
-1)
|
||||
{
|
||||
return py_bvhtree_raycast_to_py(&hit);
|
||||
}
|
||||
}
|
||||
@@ -403,7 +404,8 @@ static PyObject *py_bvhtree_find_nearest(PyBVHTree *self, PyObject *args)
|
||||
/* may fail if the mesh has no faces, in that case the ray-cast misses */
|
||||
if (self->tree) {
|
||||
if (BLI_bvhtree_find_nearest(self->tree, co, &nearest, py_bvhtree_nearest_point_cb, self) !=
|
||||
-1) {
|
||||
-1)
|
||||
{
|
||||
return py_bvhtree_nearest_to_py(&nearest);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,7 +211,8 @@ static PyObject *py_kdtree_find(PyKDTree *self, PyObject *args, PyObject *kwargs
|
||||
const char *keywords[] = {"co", "filter", nullptr};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(
|
||||
args, kwargs, "O|$O:find", (char **)keywords, &py_co, &py_filter)) {
|
||||
args, kwargs, "O|$O:find", (char **)keywords, &py_co, &py_filter))
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
#define MATRIX_A 0x9908b0dfUL /* constant vector a */
|
||||
#define UMASK 0x80000000UL /* most significant w-r bits */
|
||||
#define LMASK 0x7fffffffUL /* least significant r bits */
|
||||
#define MIXBITS(u, v) (((u)&UMASK) | ((v)&LMASK))
|
||||
#define TWIST(u, v) ((MIXBITS(u, v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL))
|
||||
#define MIXBITS(u, v) (((u) & UMASK) | ((v) & LMASK))
|
||||
#define TWIST(u, v) ((MIXBITS(u, v) >> 1) ^ ((v) & 1UL ? MATRIX_A : 0UL))
|
||||
|
||||
static ulong state[N]; /* The array for the state vector. */
|
||||
static int left = 1;
|
||||
@@ -869,7 +869,8 @@ static PyObject *M_Noise_hybrid_multi_fractal(PyObject * /*self*/, PyObject *arg
|
||||
}
|
||||
|
||||
if (mathutils_array_parse(vec, 3, 3, value, "hybrid_multi_fractal: invalid 'position' arg") ==
|
||||
-1) {
|
||||
-1)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -932,7 +933,8 @@ static PyObject *M_Noise_ridged_multi_fractal(PyObject * /*self*/, PyObject *arg
|
||||
}
|
||||
|
||||
if (mathutils_array_parse(vec, 3, 3, value, "ridged_multi_fractal: invalid 'position' arg") ==
|
||||
-1) {
|
||||
-1)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user