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.
This commit is contained in:
2013-04-26 21:04:12 +00:00
parent 357198d885
commit 5018ea5e29
5 changed files with 35 additions and 20 deletions

View File

@@ -1343,7 +1343,8 @@ static PyObject *M_Geometry_tessellate_polygon(PyObject *UNUSED(self), PyObject
}
else if (totpoints) {
/* now make the list to return */
BKE_displist_fill(&dispbase, &dispbase, 0);
/* TODO, add normal arg */
BKE_displist_fill(&dispbase, &dispbase, NULL, false);
/* The faces are stored in a new DisplayList
* thats added to the head of the listbase */