Skip to content

Commit

Permalink
Lower severity level for ogre2 visibility mask msgs and unavailable r…
Browse files Browse the repository at this point in the history
…ender passes (#830)


Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Apr 12, 2023
1 parent 420f8f1 commit 9421565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions ogre2/src/Ogre2Camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,11 @@ void Ogre2Camera::SetVisibilityMask(uint32_t _mask)
{
if (_mask & ~Ogre::VisibilityFlags::RESERVED_VISIBILITY_FLAGS)
{
ignerr << "Ogre2Camera::SetVisibilityMask: Mask bits " << std::hex
<< ~Ogre::VisibilityFlags::RESERVED_VISIBILITY_FLAGS << std::dec
<< " are set but will be ignored by ogre2 backend." << std::endl;
ignwarn << "Ogre2Camera::SetVisibilityMask: Mask bits " << std::hex
<< ~Ogre::VisibilityFlags::RESERVED_VISIBILITY_FLAGS << std::dec
<< " are set but will be ignored as they conflict with the "
<< "reserved bits used internally by the ogre2 backend."
<< std::endl;
}
BaseSensor::SetVisibilityMask(_mask);
if (this->renderTexture)
Expand Down
4 changes: 2 additions & 2 deletions src/RenderPassSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ RenderPassPtr RenderPassSystem::CreateImpl(const std::string &_type)
}
else
{
ignerr << "RenderPass of typeid '" << _type << "' is not registered"
<< std::endl;
ignwarn << "RenderPass of typeid '" << _type << "' is not registered"
<< std::endl;
}
return pass;
}
Expand Down

0 comments on commit 9421565

Please sign in to comment.