提交 1e746c22 编写于 作者: T Temdog007

Only display tenions of catmullrom is selected

上级 65ebf35d
......@@ -107,7 +107,7 @@ Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
// tension
var tensionRow = new UI.Row();
var tensionRow = new UI.Row().setDisplay( curveType.getValue() == 'catmullrom' ? '' : 'none' );
var tension = new UI.Number( parameters.path.tension ).setStep( 0.01 ).onChange( update );
tensionRow.add( new UI.Text( strings.getKey( 'sidebar/geometry/tube_geometry/tension' ) ).setWidth( '90px' ), tension );
......@@ -133,6 +133,8 @@ Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
}
tensionRow.setDisplay( curveType.getValue() == 'catmullrom' ? '' : 'none' );
editor.execute( new SetGeometryCommand( object, new THREE[ geometry.type ](
new THREE.CatmullRomCurve3( points, closed.getValue(), curveType.getValue(), tension.getValue() ),
tubularSegments.getValue(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册