Преглед изворни кода

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();
 
 	return data;