-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fixed usd2sdf when import from model:// #1023
Conversation
Signed-off-by: ahcorde <[email protected]>
Codecov Report
@@ Coverage Diff @@
## sdf12 #1023 +/- ##
=======================================
Coverage 65.38% 65.38%
=======================================
Files 2 2
Lines 26 26
=======================================
Hits 17 17
Misses 9 9 Continue to review full report at Codecov.
|
fullName = | ||
ignition::common::findFile(_geometry.MeshShape()->Uri()); | ||
|
||
std::function<void(const std::string)> addSubFolders = |
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.
Can you comment why this is adding the subfolders?
{ | ||
auto systemPaths = ignition::common::systemPaths(); | ||
systemPaths->AddFilePaths(current); | ||
addSubFolders(current); |
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.
I don't get why this needs to be recursive. My understanding was that you add the directories that are siblings of the model directory so that a model can reference meshes in other models, but this shouldn't require recursing to subdirectories of the model.
Hi @ahcorde, I add an extra detail running from
I have an error:
but I have a new folder with all textures called: Does this PR fix this bug? |
Follow up |
this should be retargeted to https://github.com/gazebosim/gz-usd |
Signed-off-by: ahcorde [email protected]
🦟 Bug fix
Summary
Added the
model://
path to the set of folder where sdf should look for models and texturesFYI @rbonghi
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.