浏览代码

ExtrudeGeometry: Fix toJSON() when using extrudePath. (#24013)

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js
Michael Herzog 3 年之前
父节点
当前提交
154e543b1e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/geometries/ExtrudeGeometry.js

+ 2 - 0
src/geometries/ExtrudeGeometry.js

@@ -801,6 +801,8 @@ function toJSON( shapes, options, data ) {
 
 
 	}
 	}
 
 
+	data.options = Object.assign( {}, options );
+
 	if ( options.extrudePath !== undefined ) data.options.extrudePath = options.extrudePath.toJSON();
 	if ( options.extrudePath !== undefined ) data.options.extrudePath = options.extrudePath.toJSON();
 
 
 	return data;
 	return data;