浏览代码

Add curve segments to extrude options

Temdog007 6 年之前
父节点
当前提交
f9b0ba6fd2
共有 1 个文件被更改,包括 4 次插入2 次删除
  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()
+			}
 		) ) );
 
 	}