Cleanup: clang-format
This commit is contained in:
@@ -29,7 +29,7 @@ CCL_NAMESPACE_BEGIN
|
|||||||
static bool is_verbosity_set()
|
static bool is_verbosity_set()
|
||||||
{
|
{
|
||||||
#ifdef WITH_CYCLES_LOGGING
|
#ifdef WITH_CYCLES_LOGGING
|
||||||
using CYCLES_GFLAGS_NAMESPACE::GetCommandLineOption;
|
using CYCLES_GFLAGS_NAMESPACE::GetCommandLineOption;
|
||||||
|
|
||||||
std::string verbosity;
|
std::string verbosity;
|
||||||
if (!GetCommandLineOption("v", &verbosity)) {
|
if (!GetCommandLineOption("v", &verbosity)) {
|
||||||
@@ -37,7 +37,7 @@ using CYCLES_GFLAGS_NAMESPACE::GetCommandLineOption;
|
|||||||
}
|
}
|
||||||
return verbosity != "0";
|
return verbosity != "0";
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -122,15 +122,15 @@ bool ED_transform_snap_object_project_ray_all(SnapObjectContext *sctx,
|
|||||||
struct ListBase *r_hit_list);
|
struct ListBase *r_hit_list);
|
||||||
|
|
||||||
short ED_transform_snap_object_project_view3d_ex(struct SnapObjectContext *sctx,
|
short ED_transform_snap_object_project_view3d_ex(struct SnapObjectContext *sctx,
|
||||||
const unsigned short snap_to,
|
const unsigned short snap_to,
|
||||||
const struct SnapObjectParams *params,
|
const struct SnapObjectParams *params,
|
||||||
const float mval[2],
|
const float mval[2],
|
||||||
float *dist_px,
|
float *dist_px,
|
||||||
float r_loc[3],
|
float r_loc[3],
|
||||||
float r_no[3],
|
float r_no[3],
|
||||||
int *r_index,
|
int *r_index,
|
||||||
struct Object **r_ob,
|
struct Object **r_ob,
|
||||||
float r_obmat[4][4]);
|
float r_obmat[4][4]);
|
||||||
bool ED_transform_snap_object_project_view3d(struct SnapObjectContext *sctx,
|
bool ED_transform_snap_object_project_view3d(struct SnapObjectContext *sctx,
|
||||||
const unsigned short snap_to,
|
const unsigned short snap_to,
|
||||||
const struct SnapObjectParams *params,
|
const struct SnapObjectParams *params,
|
||||||
|
@@ -2821,15 +2821,15 @@ static short transform_snap_context_project_view3d_mixed_impl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
short ED_transform_snap_object_project_view3d_ex(SnapObjectContext *sctx,
|
short ED_transform_snap_object_project_view3d_ex(SnapObjectContext *sctx,
|
||||||
const unsigned short snap_to,
|
const unsigned short snap_to,
|
||||||
const struct SnapObjectParams *params,
|
const struct SnapObjectParams *params,
|
||||||
const float mval[2],
|
const float mval[2],
|
||||||
float *dist_px,
|
float *dist_px,
|
||||||
float r_loc[3],
|
float r_loc[3],
|
||||||
float r_no[3],
|
float r_no[3],
|
||||||
int *r_index,
|
int *r_index,
|
||||||
Object **r_ob,
|
Object **r_ob,
|
||||||
float r_obmat[4][4])
|
float r_obmat[4][4])
|
||||||
{
|
{
|
||||||
return transform_snap_context_project_view3d_mixed_impl(
|
return transform_snap_context_project_view3d_mixed_impl(
|
||||||
sctx, snap_to, params, mval, dist_px, r_loc, r_no, r_index, r_ob, r_obmat) != 0;
|
sctx, snap_to, params, mval, dist_px, r_loc, r_no, r_index, r_ob, r_obmat) != 0;
|
||||||
@@ -2856,7 +2856,7 @@ bool ED_transform_snap_object_project_view3d(SnapObjectContext *sctx,
|
|||||||
float r_no[3])
|
float r_no[3])
|
||||||
{
|
{
|
||||||
return ED_transform_snap_object_project_view3d_ex(
|
return ED_transform_snap_object_project_view3d_ex(
|
||||||
sctx, snap_to, params, mval, dist_px, r_loc, r_no, NULL, NULL, NULL) != 0;
|
sctx, snap_to, params, mval, dist_px, r_loc, r_no, NULL, NULL, NULL) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user