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

Only set shadow texture size if configured by the user in the SDFormat file #642

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Sep 16, 2024

🦟 Bug fix

Fixes gazebosim/gazebo_test_cases#1604

Summary

The default shadow texture size being set even in Ogre1, for which we don't have that capability implemented. This changes the texture size to an optional so that only if the shadow texture parameter is specified in the SDFormat file will it try to call SetShadowTextureSize.

Test It

gazebosim/gz-sim#2586 has changed the dem_monterey_bay.sdf file to use ogre2, so you'll need to change it back to ogre to test this. With this PR, it should not have an error message.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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 and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@azeey azeey merged commit 7e1d64f into gazebosim:gz-gui9 Sep 16, 2024
11 checks passed
@azeey azeey deleted the fix_shadow_param_error branch September 16, 2024 22:49
iche033 pushed a commit that referenced this pull request Sep 25, 2024
…t file (#642)

Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

gz-sim: dem_monterey_bay.sdf
3 participants