From 64e576a004242c04371282e5fcb2f4cbf5922239 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Thu, 30 Nov 2023 14:01:59 +0100 Subject: [PATCH] Render: Ensure RenderElement is null if we don't recreate it --- Pal.Client/Floors/FrameworkService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pal.Client/Floors/FrameworkService.cs b/Pal.Client/Floors/FrameworkService.cs index eb00900..fb06b8e 100644 --- a/Pal.Client/Floors/FrameworkService.cs +++ b/Pal.Client/Floors/FrameworkService.cs @@ -297,7 +297,10 @@ internal sealed class FrameworkService : IDisposable MarkerConfiguration config) { if (!config.Show) + { + location.RenderElement = null; return; + } var element = _renderAdapter.CreateElement(location.Type, location.Position, enabled, config.Color, config.Fill);