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

Do not overwrite reserved visibility flags in ogre2 (Garden) #784

Merged

Conversation

darksylinc
Copy link
Contributor

@darksylinc darksylinc commented Dec 10, 2022

🦟 Bug fix

No particular ticket issued for this bug.

Summary

This is the same as PR #783 but targeting Garden, which needs additional changes (Ogre2GpuRays) that could be easily missed when merging Fortress into Garden.

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.

OgreNext has CompositorPassSceneDef::setVisibilityMask to prevent
overwriting reserved flags.

If user calls gz::Camera::SetVisibilityMask with the reserved flags set,
wrong rendering could happen.

Signed-off-by: Matias N. Goldberg <[email protected]>
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Dec 10, 2022
Signed-off-by: Matias N. Goldberg <[email protected]>
@codecov
Copy link

codecov bot commented Dec 10, 2022

Codecov Report

Merging #784 (8f70833) into gz-rendering7 (918c1f1) will decrease coverage by 0.01%.
The diff coverage is 81.25%.

@@                Coverage Diff                @@
##           gz-rendering7     #784      +/-   ##
=================================================
- Coverage          76.12%   76.10%   -0.02%     
=================================================
  Files                164      164              
  Lines              14392    14395       +3     
=================================================
  Hits               10956    10956              
- Misses              3436     3439       +3     
Impacted Files Coverage Δ
ogre2/src/Ogre2Camera.cc 85.79% <25.00%> (-1.36%) ⬇️
ogre2/src/Ogre2DepthCamera.cc 88.17% <100.00%> (ø)
ogre2/src/Ogre2GpuRays.cc 91.43% <100.00%> (-0.02%) ⬇️
ogre2/src/Ogre2RenderTarget.cc 84.00% <100.00%> (ø)
ogre2/src/Ogre2SelectionBuffer.cc 93.25% <100.00%> (ø)
ogre2/src/Ogre2ThermalCamera.cc 81.68% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@darksylinc darksylinc mentioned this pull request Dec 10, 2022
8 tasks
@iche033 iche033 merged commit 6968855 into gazebosim:gz-rendering7 Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants