Open canxerian opened 16 hours ago
NURBSCurve
is part of the addons and there is no JSON support for this class right now. Only curves classes in the core support that.
Even with a proper NURBSCurve.toJSON()
implementation you also need the fromJSON()
counterpart to make a deserialization work.
The next problem is that objects deserialized with ObjectLoader
can't restore instances of NURBSCurve
because the type is unknown for the core. So we can only add partial serialization/deserialization support right now.
Description
The JSON object returned from
NURBSCurve.toJSON()
doesn't contain data relating points, knots or control points, but instead contains:Reproduction steps
console.log
nurbsCurveInstance.toJSON()Code
Live example
https://codesandbox.io/p/sandbox/threejs-nurbscurve-tojson-bug-s298gc
Screenshots
No response
Version
168
Device
Desktop, Mobile
Browser
Chrome, Firefox, Safari, Edge
OS
MacOS