Skip to content

Commit

Permalink
Fix missing HasBottomCap parameter check
Browse files Browse the repository at this point in the history
Issue #1638

Signed-off-by: m.blix <[email protected]>
  • Loading branch information
m-blix authored and liaxim committed Dec 11, 2017
1 parent 693b743 commit d6dfff2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ private void generateCylinder(CylinderParams params) {

// bottom cap
// 3 * numSlices
if (params.BottomRadius > 0) {
if (params.HasBottomCap && (params.BottomRadius > 0)) {
createCap(params.BottomRadius, -halfHeight, params.SliceNumber, -1.0f, params.FacingOut);
}
}
Expand Down

0 comments on commit d6dfff2

Please sign in to comment.