[Bf-blender-cvs] [2d9a5607a7a] hair_guides_grooming: Render section poly for all regions.

Lukas Tönne noreply at git.blender.org
Thu Jun 28 12:30:30 CEST 2018


Commit: 2d9a5607a7afa538482dfb1f1afe1347b459eaf1
Author: Lukas Tönne
Date:   Thu Jun 28 11:30:17 2018 +0100
Branches: hair_guides_grooming
https://developer.blender.org/rB2d9a5607a7afa538482dfb1f1afe1347b459eaf1

Render section poly for all regions.

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

M	source/blender/draw/intern/draw_cache_impl_groom.c

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

diff --git a/source/blender/draw/intern/draw_cache_impl_groom.c b/source/blender/draw/intern/draw_cache_impl_groom.c
index 91652ecba75..7a22cace3d7 100644
--- a/source/blender/draw/intern/draw_cache_impl_groom.c
+++ b/source/blender/draw/intern/draw_cache_impl_groom.c
@@ -727,13 +727,13 @@ static void groom_get_faces(
 	}
 	if (parts & GM_RENDER_SECTIONS)
 	{
+		const MLoopTri *mtri = rdata->mlooptri;
 		for (GroomRegion *region = rdata->regions->first; region; region = region->next)
 		{
 			GroomBundle *bundle = &region->bundle;
 			const int numshapeverts = region->numverts;
 			if (numshapeverts > 1)
 			{
-				const MLoopTri *mtri = rdata->mlooptri;
 				int section_tri_len = poly_to_tri_count(1, region->numverts);
 				/* Skip the first section */
 				mtri += section_tri_len;



More information about the Bf-blender-cvs mailing list