Skip to content

Commit 28fc642

Browse files
authored
Update CapsuleGeometry.js (#26405)
modify this.parameters.height to 'length' cuz it uses data.length in fromJSON(). this problem happens when you try pass a capsule's parameters to create another capsule using fromJSON()
1 parent 81facb7 commit 28fc642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geometries/CapsuleGeometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CapsuleGeometry extends LatheGeometry {
1515

1616
this.parameters = {
1717
radius: radius,
18-
height: length,
18+
length: length,
1919
capSegments: capSegments,
2020
radialSegments: radialSegments,
2121
};

0 commit comments

Comments
 (0)