Skip to content

Commit b863277

Browse files
authored
Merge pull request #15816 from Temdog007/feature/TensionTubeGeometry
THREE JS Editor: Tube Geometry Parameter
2 parents 696ecee + 1e746c2 commit b863277

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editor/js/Sidebar.Geometry.TubeGeometry.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
107107

108108
// tension
109109

110-
var tensionRow = new UI.Row();
110+
var tensionRow = new UI.Row().setDisplay( curveType.getValue() == 'catmullrom' ? '' : 'none' );
111111
var tension = new UI.Number( parameters.path.tension ).setStep( 0.01 ).onChange( update );
112112

113113
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 ) {
133133

134134
}
135135

136+
tensionRow.setDisplay( curveType.getValue() == 'catmullrom' ? '' : 'none' );
137+
136138
editor.execute( new SetGeometryCommand( object, new THREE[ geometry.type ](
137139
new THREE.CatmullRomCurve3( points, closed.getValue(), curveType.getValue(), tension.getValue() ),
138140
tubularSegments.getValue(),

0 commit comments

Comments
 (0)