Skip to content

Commit

Permalink
Update CapsuleGeometry.js (#26405)
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
tdanlin authored Jul 10, 2023
1 parent 81facb7 commit 28fc642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometries/CapsuleGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CapsuleGeometry extends LatheGeometry {

this.parameters = {
radius: radius,
height: length,
length: length,
capSegments: capSegments,
radialSegments: radialSegments,
};
Expand Down

0 comments on commit 28fc642

Please sign in to comment.