[Bf-blender-cvs] [8789490f961] blender2.8: LoopTri: Fix example code.

Clément Foucault noreply at git.blender.org
Thu May 31 19:12:11 CEST 2018


Commit: 8789490f961d9ddda1a2f2f6cb090c64a0ec5728
Author: Clément Foucault
Date:   Thu May 31 12:40:37 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8789490f961d9ddda1a2f2f6cb090c64a0ec5728

LoopTri: Fix example code.

For real guys! Test your example code!

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

M	source/blender/makesdna/DNA_meshdata_types.h

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

diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h
index 6d38fe22ea1..4014db72adf 100644
--- a/source/blender/makesdna/DNA_meshdata_types.h
+++ b/source/blender/makesdna/DNA_meshdata_types.h
@@ -164,8 +164,8 @@ typedef struct MLoop {
  *     MEdge *ed = &medge[mloop[lt->tri[j]].e];
  *     unsigned int tri_edge[2]  = {mloop[lt->tri[j]].v, mloop[lt->tri[j_next]].v};
  *
- *     if (((ed->v1 == tri_edge[0]) && (ed->v1 == tri_edge[1])) ||
- *         ((ed->v1 == tri_edge[1]) && (ed->v1 == tri_edge[0])))
+ *     if (((ed->v1 == tri_edge[0]) && (ed->v2 == tri_edge[1])) ||
+ *         ((ed->v1 == tri_edge[1]) && (ed->v2 == tri_edge[0])))
  *     {
  *         printf("real edge found %u %u\n", tri_edge[0], tri_edge[1]);
  *     }



More information about the Bf-blender-cvs mailing list