diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 4 | ||||
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 | ||||
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_displist.c | 2 | ||||
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 5 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 2 | ||||
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_tex_coord.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_msgbus.c | 20 |
8 files changed, 20 insertions, 20 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 875ff185184..6d9be9fb639 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -995,7 +995,7 @@ static void mesh_calc_modifier_final_normals( const Mesh *mesh_input, const CustomData_MeshMasks *dataMask, const bool sculpt_dyntopo, - Mesh *mesh_final) + Mesh *mesh_final) { /* Compute normals. */ const bool do_loop_normals = ((mesh_input->flag & ME_AUTOSMOOTH) != 0 || @@ -1517,7 +1517,7 @@ bool editbmesh_modifier_is_enabled(Scene *scene, ModifierData *md, bool has_prev static void editbmesh_calc_modifier_final_normals( const Mesh *mesh_input, const CustomData_MeshMasks *dataMask, - Mesh *mesh_final) + Mesh *mesh_final) { const bool do_loop_normals = ((mesh_input->flag & ME_AUTOSMOOTH) != 0 || (dataMask->lmask & CD_MASK_NORMAL) != 0); diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index f1aecc92bfd..f6742ac55cd 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2617,8 +2617,7 @@ static void lib_link_brush(FileData *fd, Main *main) brush->paint_curve = newlibadr_us(fd, brush->id.lib, brush->paint_curve); /* link default grease pencil palette */ - if (brush->gpencil_settings != NULL) - { + if (brush->gpencil_settings != NULL) { if (brush->gpencil_settings->flag & GP_BRUSH_MATERIAL_PINNED) { brush->gpencil_settings->material = newlibadr_us(fd, brush->id.lib, brush->gpencil_settings->material); diff --git a/source/blender/draw/intern/draw_cache_impl_displist.c b/source/blender/draw/intern/draw_cache_impl_displist.c index dfac50e084c..4dfe71df36c 100644 --- a/source/blender/draw/intern/draw_cache_impl_displist.c +++ b/source/blender/draw/intern/draw_cache_impl_displist.c @@ -621,7 +621,7 @@ void DRW_displist_indexbuf_create_edges_adjacency_lines(struct ListBase *lb, str EdgeHash *eh = BLI_edgehash_new_ex(__func__, tri_len * 3); /* pack values to pass to `set_edges_adjacency_lines_indices` function. */ - void* thunk[3] = {&elb,eh, r_is_manifold}; + void *thunk[3] = {&elb, eh, r_is_manifold}; int v_idx = 0; for (const DispList *dl = lb->first; dl; dl = dl->next) { displist_indexbufbuilder_set( diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 3a284d80e5f..10729ecaa5e 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -4319,7 +4319,7 @@ static bool merge_2_nurb(Curve *cu, ListBase *editnurb, Nurb *nu1, Nurb *nu2) if (len1 < len2) { bp2 = &nu2->bp[v * nu2->pntsu]; } - else { + else { bp2 = &nu2->bp[(nu1->pntsv - v - 1) * nu2->pntsu]; } diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index 17cb21d62bd..5922872070d 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -1156,8 +1156,9 @@ static bool gpencil_fill_poll(bContext *C) ScrArea *sa = CTX_wm_area(C); if (sa->spacetype == SPACE_VIEW3D) { if ((obact == NULL) || - (obact->type != OB_GPENCIL) || - (obact->mode != OB_MODE_PAINT_GPENCIL)) { + (obact->type != OB_GPENCIL) || + (obact->mode != OB_MODE_PAINT_GPENCIL)) + { return false; } diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 78b702dfd0b..97b997c4604 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -661,7 +661,7 @@ static void rna_3DViewShading_type_update(Main *bmain, Scene *scene, PointerRNA DEG_id_tag_update(&ma->id, ID_RECALC_SHADING); } - View3DShading *shading = (View3DShading*)ptr->data; + View3DShading *shading = ptr->data; if (shading->type == OB_MATERIAL || (shading->type == OB_RENDER && (strcmp(scene->r.engine, RE_engine_id_BLENDER_EEVEE) == 0 || strcmp(scene->r.engine, RE_engine_id_CYCLES)))) { diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_coord.c b/source/blender/nodes/shader/nodes/node_shader_tex_coord.c index 08dbeb5454f..dfd5a46d4c7 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tex_coord.c +++ b/source/blender/nodes/shader/nodes/node_shader_tex_coord.c @@ -39,7 +39,7 @@ static int node_shader_gpu_tex_coord(GPUMaterial *mat, bNode *node, bNodeExecDat Object *ob = (Object *)node->id; invert_m4_m4(ob->imat, ob->obmat); - GPUNodeLink *inv_obmat = (ob != NULL) ? GPU_uniform((float*)ob->imat) : GPU_builtin(GPU_INVERSE_OBJECT_MATRIX); + GPUNodeLink *inv_obmat = (ob != NULL) ? GPU_uniform(&ob->imat[0][0]) : GPU_builtin(GPU_INVERSE_OBJECT_MATRIX); GPUNodeLink *orco = GPU_attribute(CD_ORCO, ""); GPUNodeLink *mtface = GPU_attribute(CD_MTFACE, ""); diff --git a/source/blender/python/intern/bpy_msgbus.c b/source/blender/python/intern/bpy_msgbus.c index 08ed60b5073..bfcf089fb60 100644 --- a/source/blender/python/intern/bpy_msgbus.c +++ b/source/blender/python/intern/bpy_msgbus.c @@ -247,11 +247,11 @@ static PyObject *bpy_msgbus_subscribe_rna(PyObject *UNUSED(self), PyObject *args int options = 0; if (PyTuple_GET_SIZE(args) != 0) { - PyErr_Format( - PyExc_TypeError, - "%s: only keyword arguments are supported", - error_prefix); - return NULL; + PyErr_Format( + PyExc_TypeError, + "%s: only keyword arguments are supported", + error_prefix); + return NULL; } static const char *_keywords[] = { "key", @@ -343,11 +343,11 @@ static PyObject *bpy_msgbus_publish_rna(PyObject *UNUSED(self), PyObject *args, PyObject *py_sub = NULL; if (PyTuple_GET_SIZE(args) != 0) { - PyErr_Format( - PyExc_TypeError, - "%s: only keyword arguments are supported", - error_prefix); - return NULL; + PyErr_Format( + PyExc_TypeError, + "%s: only keyword arguments are supported", + error_prefix); + return NULL; } static const char *_keywords[] = { "key", |