Cleanup: clang-format
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user