Skip to content
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

Added HAnim containerFields #1141

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added HAnim containerFields #1141

wants to merge 4 commits into from

Conversation

coderextreme
Copy link
Contributor

Added containerFields for USE sites, segment and joints

@coderextreme
Copy link
Contributor Author

When the JSON is converted to DOM, we need to check to see if we should add a containerField to the DOM.

@coderextreme
Copy link
Contributor Author

This breaks the JSON parser for HAnim, even though it was supposed to support it. Hmm.

@coderextreme coderextreme reopened this Nov 21, 2020
@coderextreme
Copy link
Contributor Author

I must be sleepy, looking at production instead of dev. I think this patch is needed when converting JSON to XML or DOM, to add containerFields.

@andreasplesch
Copy link
Contributor

Let's keep x3dscript separate since it needs extra testing and is not quite ready to be included in a release. Please remove here.

Do we have a small test for HAnim json ?

@andreasplesch
Copy link
Contributor

andreasplesch commented Nov 22, 2020

https://coderextreme.net/X3DJSONLD/src/main/html/joeandjin.html I think is related.

The HAnim json there requires the changes to JSONParser.

Which examples require the Proto related changes, eg. the guards in addChild() ?

else
{
this.ConvertObject( key, object, element );
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cherry picked in #1142

@coderextreme
Copy link
Contributor Author

coderextreme commented Nov 22, 2020 via email

@andreasplesch
Copy link
Contributor

Here is the complete change:
https://github.com/x3dom/x3dom/pull/1142/files
I think it is complete ?

@coderextreme
Copy link
Contributor Author

coderextreme commented Nov 22, 2020 via email

@coderextreme
Copy link
Contributor Author

coderextreme commented Nov 22, 2020 via email

@andreasplesch
Copy link
Contributor

https://coderextreme.net/X3DJSONLD/src/main/html/x3domjoe.html

does not require the guards for node==null in addChild.

Do you have an example where the guards are required ?

@coderextreme
Copy link
Contributor Author

coderextreme commented Nov 23, 2020 via email

@andreasplesch
Copy link
Contributor

Please feel free to reopen when appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants