Browse Source

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

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js
Michael Herzog 3 years ago
parent
commit
154e543b1e
1 changed files with 2 additions and 0 deletions
  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();
 
 	return data;