Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-27 01:04:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-27 01:04:12 +0400
commit5018ea5e29fad0404ca4871aa3eff4599cc04878 (patch)
treeaa398c63044355030723a0721f310ed8f8343bd2 /source/blender/editors/mesh/editmesh_select.c
parent357198d88590dbc90751bdf0daf59f25d984bb59 (diff)
real fix for [#35097], (curve cap flipping).
previous commit was incorrect, the face flipping depended on the orientation of the curve. fix by passing the bevel direction to the fill function so we can have a reliable front/back. This also gives some speedup for all curve filling since we can avoid calculating the normal since its already known.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_select.c')
-rw-r--r--source/blender/editors/mesh/editmesh_select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index f245aa1de72..40362821942 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -144,6 +144,7 @@ static void draw_triangulated(const int mcords[][2], const short tot)
DispList *dl;
float *fp;
int a;
+ const float z_up[3] = {0.0f, 0.0f, 1.0f};
/* make displist */
dl = MEM_callocN(sizeof(DispList), "poly disp");
@@ -159,7 +160,7 @@ static void draw_triangulated(const int mcords[][2], const short tot)
}
/* do the fill */
- BKE_displist_fill(&lb, &lb, 0);
+ BKE_displist_fill(&lb, &lb, z_up, false);
/* do the draw */
dl = lb.first; /* filldisplist adds in head of list */