# HG changeset patch # User Alys Brooks # Date 2022-02-17 08:26:51 # Node ID 52e7a2be771fbb4f96f99368163a7f4c25f30e3f # Parent 10be9f4e2000fc33bbdd29efc2b7e2d7bccdb49f Clear tool selections. diff --git a/isometric-park-fna/Engines/UIEngine.cs b/isometric-park-fna/Engines/UIEngine.cs --- a/isometric-park-fna/Engines/UIEngine.cs +++ b/isometric-park-fna/Engines/UIEngine.cs @@ -106,6 +106,14 @@ var tool_type = GetComponent(entity).Tool; if (tool_type == toolMessage.Tool) { + + //Clear selections + foreach (ref readonly var inner_entity in ReadEntities()) + { + var inner_selected_component = GetComponent(inner_entity); + inner_selected_component.selected = false; + SetComponent(inner_entity, inner_selected_component); + } var selectedComponent = GetComponent(entity); selectedComponent.selected = !selectedComponent.selected; SetComponent(entity, selectedComponent);