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

Prevent crash when using <specular> workflow PBR material #1099

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Oct 8, 2021

Signed-off-by: Ian Chen ichen@osrfoundation.org

🦟 Bug fix

Fixes #1038

Summary

The PR prevents a crash when <material><pbr><specular> is specified in the SDF, and expanded the error msg. It will still try to render the material using the metal workflow but without metalness and roughness settings.

To test, try changing a model with PBR material to use the specular workflow, i.e. change <metal> to <specular> or just add <pbr><specular></specular></pbr> to <material> in any model, and ignition gazebo will crash without these changes.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <ichen@osrfoundation.org>
@iche033 iche033 mentioned this pull request Oct 8, 2021
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Oct 8, 2021
@Kakcalu13
Copy link

Silly question,

I downloaded Citadel through apt. Once this merged, would this update apt automatically or do I need to use through github?

@chapulina
Copy link
Contributor

Once this merged, would this update apt automatically or do I need to use through github?

It will be available through apt when we make the next release from the ign-gazebo3 branch. Keep an eye on the tags for 3.x. You can also subscribe to notifications.

@chapulina chapulina merged commit c431962 into ign-gazebo3 Oct 11, 2021
@chapulina chapulina deleted the specular_workflow_crash branch October 11, 2021 22:12
WilliamLewww pushed a commit to WilliamLewww/ign-gazebo that referenced this pull request Dec 7, 2021
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants