Browse Source

Add curve segments to extrude options

Temdog007 6 years ago
parent
commit
f9b0ba6fd2
1 changed files with 4 additions and 2 deletions
  1. 4 2
      editor/js/Sidebar.Geometry.ShapeGeometry.js

+ 4 - 2
editor/js/Sidebar.Geometry.ShapeGeometry.js

@@ -32,7 +32,7 @@ Sidebar.Geometry.ShapeGeometry = function ( editor, object ) {
 	function changeShape() {
 
 		editor.execute( new SetGeometryCommand( object, new THREE[ geometry.type ](
-			geometry.parameters.shapes,
+			parameters.shapes,
 			curveSegments.getValue()
 		) ) );
 
@@ -41,7 +41,9 @@ Sidebar.Geometry.ShapeGeometry = function ( editor, object ) {
 	function toExtrude() {
 
 		editor.execute( new SetGeometryCommand( object, new THREE.ExtrudeBufferGeometry(
-			geometry.parameters.shapes, {}
+			parameters.shapes, {
+				curveSegments: curveSegments.getValue()
+			}
 		) ) );
 
 	}