|
@@ -107,7 +107,7 @@ Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
|
|
|
|
|
|
// tension
|
|
// 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 );
|
|
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 );
|
|
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 ](
|
|
editor.execute( new SetGeometryCommand( object, new THREE[ geometry.type ](
|
|
new THREE.CatmullRomCurve3( points, closed.getValue(), curveType.getValue(), tension.getValue() ),
|
|
new THREE.CatmullRomCurve3( points, closed.getValue(), curveType.getValue(), tension.getValue() ),
|
|
tubularSegments.getValue(),
|
|
tubularSegments.getValue(),
|