소스 검색

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()
+			}
 		) ) );
 
 	}