浏览代码

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(),