Browse Source

Fixed issue with closing the tube

Temdog007 6 years ago
parent
commit
69e04782e2
1 changed files with 1 additions and 1 deletions
  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(),