diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-18 21:30:01 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-18 21:30:01 +0300 |
commit | a6a0cbcd7492bd8087b6df659c365482614b13e2 (patch) | |
tree | 7b21801d65c592b831873d245de2e77d5aa58de3 /source | |
parent | 5502517c3c12086c111ae5477fae9c0d2eb8a84c (diff) |
Curves: Allow caps for all geometry types
I think this wasn't allowed before because the section of a curve was
built in multiple parts. But since rBe34d3e32dda7, the whole slice
of a curve is built in one piece, so we can easily support curve
caps for all geometry types, including the new custom profile option.
Note that this also allows "caps" when the fill type is not full.
They could easily be disabled by checking for "Full" fill type
if that was preferred in the future.
See the patch for images.
Differential Revision: https://developer.blender.org/D8911
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/displist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c index 5c162486c85..8fdd6ee69d9 100644 --- a/source/blender/blenkernel/intern/displist.c +++ b/source/blender/blenkernel/intern/displist.c @@ -1753,7 +1753,7 @@ static void do_makeDispListCurveTypes(Depsgraph *depsgraph, rotateBevelPiece(cu, bevp, NULL, dlb, 0.0f, widfac, fac, &data); } - if (cu->bevobj && (cu->flag & CU_FILL_CAPS) && !(nu->flagu & CU_NURB_CYCLIC)) { + if ((cu->flag & CU_FILL_CAPS) && !(nu->flagu & CU_NURB_CYCLIC)) { if (a == 1) { fillBevelCap(nu, dlb, cur_data - 3 * dlb->nr, &bottom_capbase); copy_v3_v3(bottom_no, bevp->dir); |