[Bf-blender-cvs] [9a67aac8d75] master: Cleanup: Fix outdated comment
Hans Goudey
noreply at git.blender.org
Wed Aug 17 18:05:28 CEST 2022
Commit: 9a67aac8d756181b38fded0bef719736d9e0a311
Author: Hans Goudey
Date: Wed Aug 17 12:05:20 2022 -0400
Branches: master
https://developer.blender.org/rB9a67aac8d756181b38fded0bef719736d9e0a311
Cleanup: Fix outdated comment
===================================================================
M source/blender/blenkernel/intern/mball_tessellate.c
===================================================================
diff --git a/source/blender/blenkernel/intern/mball_tessellate.c b/source/blender/blenkernel/intern/mball_tessellate.c
index 96b3681b333..61f5a5f315f 100644
--- a/source/blender/blenkernel/intern/mball_tessellate.c
+++ b/source/blender/blenkernel/intern/mball_tessellate.c
@@ -430,8 +430,6 @@ static float metaball(PROCESS *process, float x, float y, float z)
*/
static void make_face(PROCESS *process, int i1, int i2, int i3, int i4)
{
- int *cur;
-
#ifdef USE_ACCUM_NORMAL
float n[3];
#endif
@@ -441,10 +439,9 @@ static void make_face(PROCESS *process, int i1, int i2, int i3, int i4)
process->indices = MEM_reallocN(process->indices, sizeof(int[4]) * process->totindex);
}
- cur = process->indices[process->curindex++];
-
- /* #DispList supports array drawing, treat tri's as fake quad. */
+ int *cur = process->indices[process->curindex++];
+ /* Treat triangles as fake quads. */
cur[0] = i1;
cur[1] = i2;
cur[2] = i3;
More information about the Bf-blender-cvs
mailing list