From c9e35c2ced92082c86f1ecb9ecd16c6230218c7c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 15:14:13 +1000 Subject: Cleanup: remove redundant double parenthesis --- source/blender/editors/object/object_constraint.c | 4 ++-- source/blender/editors/object/object_edit.c | 2 +- source/blender/editors/object/object_vgroup.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/object') diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 3c3b66b4b1d..fa9ded0f989 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -114,7 +114,7 @@ ListBase *ED_object_constraint_list_from_constraint(Object *ob, } /* try object constraints first */ - if ((BLI_findindex(&ob->constraints, con) != -1)) { + if (BLI_findindex(&ob->constraints, con) != -1) { return &ob->constraints; } @@ -126,7 +126,7 @@ ListBase *ED_object_constraint_list_from_constraint(Object *ob, * NOTE: it's not possible to directly look up the active bone yet, so this will have to do */ for (pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) { - if ((BLI_findindex(&pchan->constraints, con) != -1)) { + if (BLI_findindex(&pchan->constraints, con) != -1) { if (r_pchan) { *r_pchan = pchan; diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index c3482b13db6..2e22e3bb00d 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1490,7 +1490,7 @@ static int shade_smooth_exec(bContext *C, wmOperator *op) ViewLayer *view_layer = CTX_data_view_layer(C); BKE_view_layer_synced_ensure(scene, view_layer); Object *obact = BKE_view_layer_active_object_get(view_layer); - if (obact && ((obact->mode & OB_MODE_ALL_PAINT))) { + if (obact && (obact->mode & OB_MODE_ALL_PAINT)) { ctx_ob_single_active.ptr.data = obact; BLI_addtail(&ctx_objects, &ctx_ob_single_active); } diff --git a/source/blender/editors/object/object_vgroup.cc b/source/blender/editors/object/object_vgroup.cc index 44fea0b32f0..0e671257972 100644 --- a/source/blender/editors/object/object_vgroup.cc +++ b/source/blender/editors/object/object_vgroup.cc @@ -2789,7 +2789,7 @@ static bool vertex_group_vert_poll_ex(bContext *C, return false; } - if (ob_type_flag && (((1 << ob->type) & ob_type_flag)) == 0) { + if (ob_type_flag && ((1 << ob->type) & ob_type_flag) == 0) { return false; } -- cgit v1.2.3