From b7694288e537865d5ceb2b523a2a76eca20d9979 Mon Sep 17 00:00:00 2001 From: giorgiomarcias Date: Sun, 14 Feb 2016 06:56:26 +0000 Subject: [PATCH] Corrected vertex reference assignment for second triangle in AddQuadFace for the case of two triangles with faux flags --- vcg/complex/allocate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/allocate.h b/vcg/complex/allocate.h index 581e1e6b..62d68d79 100644 --- a/vcg/complex/allocate.h +++ b/vcg/complex/allocate.h @@ -534,7 +534,7 @@ public: fi->Alloc(3); fi->V(0)=v0; fi->V(1)=v1; fi->V(2)=v2; fi->SetF(2); ++fi; - fi->Alloc(3); fi->V(0)=v0; fi->V(2)=v1; fi->V(3)=v2; + fi->Alloc(3); fi->V(0)=v0; fi->V(1)=v2; fi->V(2)=v3; fi->SetF(0); return fi; }