Ver Fonte

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

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js

* Update ExtrudeGeometry.js
Michael Herzog há 3 anos atrás
pai
commit
154e543b1e
1 ficheiros alterados com 2 adições e 0 exclusões
  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;