[Bf-blender-cvs] [9ce92878d03] hair_guides_grooming: Correct indices for section face drawing by adding the start offset to triangles.
Lukas Tönne
noreply at git.blender.org
Wed Jun 27 08:19:47 CEST 2018
Commit: 9ce92878d03940e3e3369df8f4031b43f0d0f43f
Author: Lukas Tönne
Date: Wed Jun 27 07:19:13 2018 +0100
Branches: hair_guides_grooming
https://developer.blender.org/rB9ce92878d03940e3e3369df8f4031b43f0d0f43f
Correct indices for section face drawing by adding the start offset to triangles.
===================================================================
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 e7c012b513c..b94b1b9e53f 100644
--- a/source/blender/draw/intern/draw_cache_impl_groom.c
+++ b/source/blender/draw/intern/draw_cache_impl_groom.c
@@ -733,7 +733,11 @@ static void groom_get_faces(
{
for (int j = 0; j < rdata->section_tri_len; ++j, ++mtri)
{
- GWN_indexbuf_add_tri_verts(&elb, mtri->tri[0], mtri->tri[1], mtri->tri[2]);
+ GWN_indexbuf_add_tri_verts(
+ &elb,
+ idx + mtri->tri[0],
+ idx + mtri->tri[1],
+ idx + mtri->tri[2]);
}
}
More information about the Bf-blender-cvs
mailing list