-
Notifications
You must be signed in to change notification settings - Fork 35
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
Toggling entity visibility is undoable and fix saving visible false #820
Conversation
@vincentfretin ok i made an attempt to save/load visible. It worked in my testing but I would appreciate you to look it over again. I was worried about javascript's confusion sometimes to detect the existence of a property whose value is false vs. a property that does not exist, but |
The visible key should really be in the components object, so not a correct fix, but you gave me an idea of the real issue. |
This reverts commit 5397b1a.
There were two issues here to be able to export |
thanks, this makes sense in theory but I can't follow the details enough to validate the logic. So instead thinking out loud, one way to quickly test this is to compare scene json export from before / after the fix on a complicated scene (without hidden visibility, since that is new behavior) and see if the output is identical? |
here are results so far from my testing old and new comparing json output for the same scene strange thing:
minor things:
|
Yes, all the things you just reported existed before this change. 3dstreet/src/json-utils_1.1.js Lines 312 to 322 in afb7aa2
|
You can create a separate issue if you want to fix removing the scale, geometry, material components if that's the same value as the mixin, make the component order deterministic, or round the coordinates of position and rotation. |
exporting |
This fixes one part of #793