From f75ca733eda40f7efeead644472fab1c9be99494 Mon Sep 17 00:00:00 2001 From: Luca Rood Date: Wed, 24 May 2017 16:47:00 +0200 Subject: Fix indentation in clay_engine.c --- source/blender/draw/engines/clay/clay_engine.c | 53 +++++++++++++------------- 1 file changed, 26 insertions(+), 27 deletions(-) (limited to 'source') diff --git a/source/blender/draw/engines/clay/clay_engine.c b/source/blender/draw/engines/clay/clay_engine.c index 259b65c1b96..be43542a5ff 100644 --- a/source/blender/draw/engines/clay/clay_engine.c +++ b/source/blender/draw/engines/clay/clay_engine.c @@ -770,33 +770,32 @@ static void CLAY_cache_populate(void *vedata, Object *ob) } } - if (ob->type == OB_MESH) { - Scene *scene = draw_ctx->scene; - Object *obedit = scene->obedit; - - if (ob != obedit) { - for (ParticleSystem *psys = ob->particlesystem.first; psys; psys = psys->next) { - if (psys_check_enabled(ob, psys, false)) { - ParticleSettings *part = psys->part; - int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as; - - if (draw_as == PART_DRAW_PATH && !psys->pathcache && !psys->childcache) { - draw_as = PART_DRAW_DOT; - } - - static float mat[4][4]; - unit_m4(mat); - - if (draw_as == PART_DRAW_PATH) { - geom = DRW_cache_particles_get_hair(psys); - hair_shgrp = CLAY_hair_shgrp_get(ob, stl, psl); - DRW_shgroup_call_add(hair_shgrp, geom, mat); - } - } - } - } - } - + if (ob->type == OB_MESH) { + Scene *scene = draw_ctx->scene; + Object *obedit = scene->obedit; + + if (ob != obedit) { + for (ParticleSystem *psys = ob->particlesystem.first; psys; psys = psys->next) { + if (psys_check_enabled(ob, psys, false)) { + ParticleSettings *part = psys->part; + int draw_as = (part->draw_as == PART_DRAW_REND) ? part->ren_as : part->draw_as; + + if (draw_as == PART_DRAW_PATH && !psys->pathcache && !psys->childcache) { + draw_as = PART_DRAW_DOT; + } + + static float mat[4][4]; + unit_m4(mat); + + if (draw_as == PART_DRAW_PATH) { + geom = DRW_cache_particles_get_hair(psys); + hair_shgrp = CLAY_hair_shgrp_get(ob, stl, psl); + DRW_shgroup_call_add(hair_shgrp, geom, mat); + } + } + } + } + } } static void CLAY_cache_finish(void *vedata) -- cgit v1.2.3