diff --git a/ogre2/src/Ogre2Projector.cc b/ogre2/src/Ogre2Projector.cc index 6052acc5d..ef68310de 100644 --- a/ogre2/src/Ogre2Projector.cc +++ b/ogre2/src/Ogre2Projector.cc @@ -163,9 +163,11 @@ void Ogre2Projector::UpdateCameraListener() { // if a custom visibility flag is set, we will need to use a listener // for toggling the visibility of the decal - if (this->VisibilityFlags() == GZ_VISIBILITY_ALL) + if ((this->VisibilityFlags() & GZ_VISIBILITY_ALL) == GZ_VISIBILITY_ALL) { this->dataPtr->decalNode->setVisible(true); + this->dataPtr->decalNode->getCreator()->setDecalsDiffuse( + this->dataPtr->decal->getDiffuseTexture()); for (auto &ogreCamIt : this->dataPtr->camerasWithListener) {