Cleanup: style

This commit is contained in:
Campbell Barton 2018-09-12 05:57:18 +10:00
parent d495916547
commit 6c6c3bad02
3 changed files with 11 additions and 9 deletions

View File

@ -180,9 +180,10 @@ static void subdiv_ccg_eval_grid_element(
}
}
BLI_INLINE void rotate_corner_to_quad(const int corner,
const float u, const float v,
float *r_u, float *r_v)
BLI_INLINE void rotate_corner_to_quad(
const int corner,
const float u, const float v,
float *r_u, float *r_v)
{
if (corner == 0) {
*r_u = 0.5f - v * 0.5f;
@ -281,9 +282,10 @@ static void subdiv_ccg_eval_grids_task(
}
}
static bool subdiv_ccg_evaluate_grids(SubdivCCG *subdiv_ccg,
Subdiv *subdiv,
const Mesh *coarse_mesh)
static bool subdiv_ccg_evaluate_grids(
SubdivCCG *subdiv_ccg,
Subdiv *subdiv,
const Mesh *coarse_mesh)
{
/* Make sure evaluator is ready. */
if (!BKE_subdiv_eval_update_from_mesh(subdiv, coarse_mesh)) {

View File

@ -350,8 +350,8 @@ void EEVEE_temporal_sampling_draw(EEVEE_Data *vedata)
/* Do reprojection for noise reduction */
/* TODO : do AA jitter if in only render view. */
if (!DRW_state_is_image_render() &&
(effects->enabled_effects & EFFECT_TAA_REPROJECT) != 0 &&
if (!DRW_state_is_image_render() &&
(effects->enabled_effects & EFFECT_TAA_REPROJECT) != 0 &&
stl->g_data->valid_taa_history)
{
GPU_framebuffer_bind(effects->target_buffer);

View File

@ -5744,7 +5744,7 @@ static bool proj_paint_add_slot(bContext *C, wmOperator *op)
if (type > LAYER_BASE_COLOR) {
/* This is a "non color data" image */
NodeTexImage* tex = imanode->storage;
NodeTexImage *tex = imanode->storage;
tex->color_space = SHD_COLORSPACE_NONE;
}