From aca8a730a69adf3b2fd29ab5a154f24b9171cfdc Mon Sep 17 00:00:00 2001 From: Ken Pruiksma Date: Tue, 6 Jul 2021 19:42:12 -0500 Subject: [PATCH] Fixing simple light types appearing back at 0,0,0 after hiding/unhiding. Signed-off-by: Ken Pruiksma --- .../Code/Source/CoreLights/LightDelegateBase.inl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/LightDelegateBase.inl b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/LightDelegateBase.inl index 36c53c8fab..a84487749f 100644 --- a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/LightDelegateBase.inl +++ b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/CoreLights/LightDelegateBase.inl @@ -134,6 +134,11 @@ namespace AZ // For lights that get their transform from the shape bus, force an OnShapeChanged to update the transform. OnShapeChanged(ShapeChangeReasons::TransformChanged); } + else + { + // OnShapeChanged() already calls this for delegates with a shape bus + HandleShapeChanged(); + } } }