Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-12-18 14:46:03 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-12-18 14:54:49 +0300
commite6c531353b842b671a3a32dc56a03d0b88e173d5 (patch)
treee50bcb22be2ba2b8fe723be66bb6deb01e7722ce /source/blender/editors/space_info
parent4046e55f7733cc521f0ce1eda1d530835635bc1f (diff)
Cleanup: Reduce indentation level
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/info_stats.c32
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)