Переглянути джерело

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