Преглед изворни кода

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()
tdanlin пре 2 година
родитељ
комит
28fc64286e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/geometries/CapsuleGeometry.js

+ 1 - 1
src/geometries/CapsuleGeometry.js

@@ -15,7 +15,7 @@ class CapsuleGeometry extends LatheGeometry {
 
 		this.parameters = {
 			radius: radius,
-			height: length,
+			length: length,
 			capSegments: capSegments,
 			radialSegments: radialSegments,
 		};