-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quaternion Serialisation Changed #25932
Comments
This output was never intended and just the result of |
I doubt that is the case. There's a very good reason it was not implemented, so that it could be distinguished from a Vector4. It may seem simple to suggest that but in practice, it is not practical. |
This comment was marked as abuse.
This comment was marked as abuse.
@mrdoob What is this ? I'd like you to review a list of thoughtless and abrupt closures like this one. Now my questions are being marked as "abuse". |
JavaScript's JSON serialization scrapes internal details from ES6 classes, including private members. I agree with @Mugen87 that serialization of a class that does not implement toJSON should not be relied upon. That the newly-implemented toJSON method does not include a "type" property is a design decision. @epreston issues are closed when a decision has been made not to work on them. I understand you'd prefer a different decision here, but from repeated experience — it does not seem like you are willing to accept maintainers' decisions, and frankly we do not have the time or obligation to persuade you. |
@donmccurdy That's not a fair summary. I've only asked for things to get some thoughtful consideration when required and time has shown it was for good reason. I've always given time and respect to peoples issues, regardless how much thought was put into them. I don't contribute much any more because I don't get that in return. |
Description
Quaternions are now serialised in a way that is indistinguishable from Vector4.
They have changed from being an object to an array in exports. There is no way to know which data type is required / used when loading exported data or inspecting log dumps.
This breaks all of our tooling.
Reproduction steps
Code
They used to be serialised by default as:
Now they are serialised as
Live example
Provided above.
Screenshots
No response
Version
r151.3
Device
Desktop, Mobile, Headset
Browser
Chrome, Firefox, Safari, Edge
OS
Windows, MacOS, Linux, Android, iOS
The text was updated successfully, but these errors were encountered: