Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-11-16 13:54:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-11-16 13:54:28 +0300
commitaf013ff76feef7e8b8ba642279c62a5dc275d59f (patch)
treeb21ee2704fdd6149f532f88a55e06e9149114f05 /source/blender/editors/gpencil
parent8fd27c152a806cb3edb33c6d361296d3db81bc4d (diff)
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_select.c9
-rw-r--r--source/blender/editors/gpencil/gpencil_utils.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index ddd8a11d9b5..2c0b9534141 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -2279,12 +2279,15 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
if (toggle) {
if (hit_curve_point != NULL) {
BezTriple *bezt = &hit_curve_point->bezt;
- if (bezt->f1 & SELECT && hit_curve_handle == 0)
+ if ((bezt->f1 & SELECT) && (hit_curve_handle == 0)) {
deselect = true;
- if (bezt->f2 & SELECT && hit_curve_handle == 1)
+ }
+ if ((bezt->f2 & SELECT) && (hit_curve_handle == 1)) {
deselect = true;
- if (bezt->f3 & SELECT && hit_curve_handle == 2)
+ }
+ if ((bezt->f3 & SELECT) && (hit_curve_handle == 2)) {
deselect = true;
+ }
}
else {
deselect = (hit_point->flag & GP_SPOINT_SELECT) != 0;
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 19aa3b69bbb..76a584fcac1 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2250,7 +2250,7 @@ static void gpencil_insert_point(bGPdata *gpd,
bGPDspoint *a_pt,
bGPDspoint *b_pt,
const float co_a[3],
- float co_b[3])
+ const float co_b[3])
{
bGPDspoint *temp_points;
int totnewpoints, oldtotpoints;