From 6389e576e376f541f98b5ad3cb34381c733c4c00 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Fri, 30 Aug 2024 22:25:45 +0000 Subject: [PATCH] Fix looking up camera name in camera lens system Signed-off-by: Ian Chen --- src/systems/lens_flare/LensFlare.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/systems/lens_flare/LensFlare.cc b/src/systems/lens_flare/LensFlare.cc index 8f099d6653..6739bb4e71 100644 --- a/src/systems/lens_flare/LensFlare.cc +++ b/src/systems/lens_flare/LensFlare.cc @@ -128,8 +128,9 @@ void LensFlare::Configure( } // Get Camera Name - this->dataPtr->cameraName = scopedName(this->dataPtr->entity, - _ecm, "::", false); + this->dataPtr->cameraName = + removeParentScope(scopedName(this->dataPtr->entity, + _ecm, "::", false), "::"); // call function that connects to post render event this->dataPtr->postRenderConn =