diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-27 01:04:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-27 01:04:12 +0400 |
commit | 5018ea5e29fad0404ca4871aa3eff4599cc04878 (patch) | |
tree | aa398c63044355030723a0721f310ed8f8343bd2 /source/blender/python/mathutils/mathutils_geometry.c | |
parent | 357198d88590dbc90751bdf0daf59f25d984bb59 (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/python/mathutils/mathutils_geometry.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_geometry.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 29526e274c9..689cbbe5410 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -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 */ |