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 <campbell@blender.org>2022-03-30 10:02:59 +0300
committerCampbell Barton <campbell@blender.org>2022-03-30 10:02:59 +0300
commit0f94c99ee70edbd306747bdad18c02d867ecd053 (patch)
treef2f61d5c2db727673bc9b57cd63567309d88ad81
parenta8ec7845e0bdb9e63e9d3dbd7f4cd7caad36b5a2 (diff)
Cleanup: clang-format
-rw-r--r--source/blender/editors/space_view3d/view3d_navigate_fly.c3
-rw-r--r--source/blender/editors/space_view3d/view3d_navigate_walk.c3
-rw-r--r--source/blender/editors/util/ed_util.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_navigate_fly.c b/source/blender/editors/space_view3d/view3d_navigate_fly.c
index 5b817dc1f45..399f422f411 100644
--- a/source/blender/editors/space_view3d/view3d_navigate_fly.c
+++ b/source/blender/editors/space_view3d/view3d_navigate_fly.c
@@ -322,7 +322,8 @@ static bool initFlyInfo(bContext *C, FlyInfo *fly, wmOperator *op, const wmEvent
fly->rv3d->persp = RV3D_PERSP;
}
- if (fly->rv3d->persp == RV3D_CAMOB && !BKE_id_is_editable(CTX_data_main(C), &fly->v3d->camera->id)) {
+ if (fly->rv3d->persp == RV3D_CAMOB &&
+ !BKE_id_is_editable(CTX_data_main(C), &fly->v3d->camera->id)) {
BKE_report(op->reports,
RPT_ERROR,
"Cannot navigate a camera from an external library or non-editable override");
diff --git a/source/blender/editors/space_view3d/view3d_navigate_walk.c b/source/blender/editors/space_view3d/view3d_navigate_walk.c
index c842eba54b3..18ed88aeec6 100644
--- a/source/blender/editors/space_view3d/view3d_navigate_walk.c
+++ b/source/blender/editors/space_view3d/view3d_navigate_walk.c
@@ -504,7 +504,8 @@ static bool initWalkInfo(bContext *C, WalkInfo *walk, wmOperator *op)
walk->rv3d->persp = RV3D_PERSP;
}
- if (walk->rv3d->persp == RV3D_CAMOB && !BKE_id_is_editable(CTX_data_main(C), &walk->v3d->camera->id)) {
+ if (walk->rv3d->persp == RV3D_CAMOB &&
+ !BKE_id_is_editable(CTX_data_main(C), &walk->v3d->camera->id)) {
BKE_report(op->reports,
RPT_ERROR,
"Cannot navigate a camera from an external library or non-editable override");
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index f125482460c..f07364cd4d3 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -126,7 +126,8 @@ void ED_editors_init(bContext *C)
continue;
}
/* Object mode is enforced for non-editable data (or their obdata). */
- if (!BKE_id_is_editable(bmain, &ob->id) || (ob_data != NULL && !BKE_id_is_editable(bmain, ob_data))) {
+ if (!BKE_id_is_editable(bmain, &ob->id) ||
+ (ob_data != NULL && !BKE_id_is_editable(bmain, ob_data))) {
continue;
}