Explorar o código

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

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js
Michael Herzog %!s(int64=3) %!d(string=hai) anos
pai
achega
154e543b1e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;