Cleanup: style

This commit is contained in:
Campbell Barton
2018-08-08 10:59:50 +10:00
parent 5f71093bb6
commit cb58658f41
8 changed files with 16 additions and 16 deletions

View File

@@ -122,11 +122,11 @@ static void set_face_varying_data_from_uv(Subdiv *subdiv,
vertex_index < num_face_vertices;
vertex_index++, mluv++)
{
evaluator->setFaceVaryingData(evaluator,
layer_index,
mluv->uv,
uv_indicies[vertex_index],
1);
evaluator->setFaceVaryingData(evaluator,
layer_index,
mluv->uv,
uv_indicies[vertex_index],
1);
}
}
}

View File

@@ -2251,7 +2251,7 @@ static void points_for_loose_edges_interpolation_get(
SubdivMeshContext *ctx,
const MEdge *coarse_edge,
const MEdge *neighbors[2],
float points_r[4][3])
float points_r[4][3])
{
const Mesh *coarse_mesh = ctx->coarse_mesh;
const MVert *coarse_mvert = coarse_mesh->mvert;

View File

@@ -22,7 +22,7 @@
CryptomatteOperation::CryptomatteOperation(size_t num_inputs) : NodeOperation()
{
for(size_t i = 0; i < num_inputs; i++) {
for (size_t i = 0; i < num_inputs; i++) {
this->addInputSocket(COM_DT_COLOR);
}
inputs.resize(num_inputs);

View File

@@ -1233,9 +1233,9 @@ void DepsgraphNodeBuilder::build_object_data_geometry_datablock(ID *obdata)
DEG_NODE_TYPE_GEOMETRY,
function_bind(BKE_gpencil_eval_geometry,
_1,
(bGPdata *)obdata_cow),
DEG_OPCODE_PLACEHOLDER,
"Geometry Eval");
(bGPdata *)obdata_cow),
DEG_OPCODE_PLACEHOLDER,
"Geometry Eval");
op_node->set_as_entry();
break;
}

View File

@@ -329,7 +329,7 @@ void GPENCIL_cache_init(void *vedata)
/* detect if playing animation */
stl->storage->is_playing = false;
if (draw_ctx->evil_C) {
stl->storage->is_playing = ED_screen_animation_playing(CTX_wm_manager(draw_ctx->evil_C)) != NULL ? true : false;
stl->storage->is_playing = ED_screen_animation_playing(CTX_wm_manager(draw_ctx->evil_C)) != NULL;
}
if (obact_gpd) {
@@ -724,7 +724,7 @@ void GPENCIL_draw_scene(void *ved)
}
/* fx passes */
if ((!stl->storage->simplify_fx) &&
(BKE_shaderfx_has_gpencil(ob)))
(BKE_shaderfx_has_gpencil(ob)))
{
stl->storage->tonemapping = 0;
DRW_gpencil_fx_draw(&e_data, vedata, cache);

View File

@@ -23,7 +23,7 @@
* ***** END GPL LICENSE BLOCK *****
*/
/** \file blender/editors/gpencil/gpencil_add_monkey.c
/** \file blender/editors/gpencil/gpencil_add_stroke.c
* \ingroup edgpencil
*/

View File

@@ -1814,7 +1814,7 @@ static int gpsculpt_brush_invoke(bContext *C, wmOperator *op, const wmEvent *eve
{
tGP_BrushEditData *gso = NULL;
const bool is_modal = RNA_boolean_get(op->ptr, "wait_for_input");
const bool is_playing = ED_screen_animation_playing(CTX_wm_manager(C)) != NULL ? true : false;
const bool is_playing = ED_screen_animation_playing(CTX_wm_manager(C)) != NULL;
bool needs_timer = false;
float brush_rate = 0.0f;

View File

@@ -124,8 +124,8 @@ static void generateStrokes(
for (i = 0, gps = gpf->strokes.first; i < tot_strokes; i++, gps = gps->next) {
if (is_stroke_affected_by_modifier(
ob, mmd->layername, mmd->pass_index, 1, gpl, gps,
mmd->flag & GP_MIRROR_INVERT_LAYER, mmd->flag & GP_MIRROR_INVERT_PASS))
ob, mmd->layername, mmd->pass_index, 1, gpl, gps,
mmd->flag & GP_MIRROR_INVERT_LAYER, mmd->flag & GP_MIRROR_INVERT_PASS))
{
gps_new = BKE_gpencil_stroke_duplicate(gps);
update_position(ob, mmd, gps_new, xi);