[Bf-blender-cvs] [f75ca733eda] blender2.8: Fix indentation in clay_engine.c

Luca Rood noreply at git.blender.org
Fri May 26 12:56:37 CEST 2017


Commit: f75ca733eda40f7efeead644472fab1c9be99494
Author: Luca Rood
Date:   Wed May 24 16:47:00 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBf75ca733eda40f7efeead644472fab1c9be99494

Fix indentation in clay_engine.c

===================================================================

M	source/blender/draw/engines/clay/clay_engine.c

===================================================================

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)




More information about the Bf-blender-cvs mailing list