-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fix loading dae file with hierarchical node that does not have a name #101
Conversation
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Codecov Report
@@ Coverage Diff @@
## ign-common3 #101 +/- ##
===============================================
+ Coverage 73.94% 73.96% +0.02%
===============================================
Files 69 69
Lines 9406 9418 +12
===============================================
+ Hits 6955 6966 +11
- Misses 2451 2452 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great for me, thanks for the fix!
Looks like the Ubuntu build is erroring due to low disk space: https://build.osrfoundation.org/job/ignition_common-ci-pr_any-ubuntu_auto-amd64/395/console |
@iche033 Do you think you can add a |
yep added test in d958def |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One spelling suggestion, but LGTM.
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
…#101) Signed-off-by: Ian Chen <ichen@osrfoundation.org> Co-authored-by: Louise Poubel <louise@openrobotics.org>
…#101) Signed-off-by: Ian Chen <ichen@osrfoundation.org> Co-authored-by: Louise Poubel <louise@openrobotics.org>
…#101) Signed-off-by: Ian Chen <ichen@osrfoundation.org> Co-authored-by: Louise Poubel <louise@openrobotics.org> Signed-off-by: Michael Carroll <michael@openrobotics.org>
pull request #78 fixed loading hierarchical submeshes in ColladaLoader but we ran into an edge case that if a node in the dae file does not have a name, it would be given the name of the previous node. For example,the Polaris Ranger EV model model has the node structure below and the result is that the nested node inside
node_B
would be incorrectly given the namenode_A
:The fix adds the logic to check that if a node does not have a name, it'll then be appended and become part of the parent mesh. It restores the original behavior before pull request #78 was merged while preserving the hierarchical submesh fix.
Signed-off-by: Ian Chen ichen@osrfoundation.org