mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 15:42:39 +08:00
Fix the bug where the vertex count is incorrect when the cylinder has a cap. (#16660)
This commit is contained in:
@@ -60,7 +60,7 @@ export default function cylinder (radiusTop = 0.5, radiusBottom = 0.5, height =
|
||||
const arc = opts.arc || 2.0 * Math.PI;
|
||||
|
||||
let cntCap = 0;
|
||||
if (!capped) {
|
||||
if (capped) {
|
||||
if (radiusTop > 0) {
|
||||
cntCap++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user