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

Fixed issue with closing the tube

Temdog007 пре 6 година
родитељ
комит
69e04782e2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      editor/js/Sidebar.Geometry.TubeGeometry.js

+ 1 - 1
editor/js/Sidebar.Geometry.TubeGeometry.js

@@ -120,7 +120,7 @@ Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
 		}
 
 		editor.execute( new SetGeometryCommand( object, new THREE[ geometry.type ](
-			new THREE.CatmullRomCurve3( points ),
+			new THREE.CatmullRomCurve3( points, closed.getValue() ),
 			tubularSegments.getValue(),
 			radius.getValue(),
 			radialSegments.getValue(),