diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-18 14:46:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-18 14:54:49 +0300 |
commit | e6c531353b842b671a3a32dc56a03d0b88e173d5 (patch) | |
tree | e50bcb22be2ba2b8fe723be66bb6deb01e7722ce /source/blender/editors/space_info/info_stats.c | |
parent | 4046e55f7733cc521f0ce1eda1d530835635bc1f (diff) |
Cleanup: Reduce indentation level
Diffstat (limited to 'source/blender/editors/space_info/info_stats.c')
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index e1823010e0d..b027d6c3df0 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -97,26 +97,26 @@ typedef struct SceneStatsFmt { static bool stats_mesheval(Mesh *me_eval, int sel, int totob, SceneStats *stats) { - int totvert, totedge, totface, totloop; + if (me_eval == NULL) { + return false; + } - if (me_eval) { - totvert = me_eval->totvert; - totedge = me_eval->totedge; - totface = me_eval->totpoly; - totloop = me_eval->totloop; + int totvert, totedge, totface, totloop; + totvert = me_eval->totvert; + totedge = me_eval->totedge; + totface = me_eval->totpoly; + totloop = me_eval->totloop; - stats->totvert += totvert * totob; - stats->totedge += totedge * totob; - stats->totface += totface * totob; - stats->tottri += poly_to_tri_count(totface, totloop) * totob; + stats->totvert += totvert * totob; + stats->totedge += totedge * totob; + stats->totface += totface * totob; + stats->tottri += poly_to_tri_count(totface, totloop) * totob; - if (sel) { - stats->totvertsel += totvert; - stats->totfacesel += totface; - } - return true; + if (sel) { + stats->totvertsel += totvert; + stats->totfacesel += totface; } - return false; + return true; } static void stats_object(Object *ob, int sel, int totob, SceneStats *stats) |