From daf586781e6bb3c4007074dd6b528dca43d510ab Mon Sep 17 00:00:00 2001 From: Kamzik123 Date: Mon, 9 Dec 2024 09:19:52 +0100 Subject: [PATCH] Fixed collisions not hiding when unchecking their node --- Mafia2Libs/Forms/MapEditor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mafia2Libs/Forms/MapEditor.cs b/Mafia2Libs/Forms/MapEditor.cs index 5a0b4177..aae002d6 100644 --- a/Mafia2Libs/Forms/MapEditor.cs +++ b/Mafia2Libs/Forms/MapEditor.cs @@ -370,6 +370,10 @@ private void UpdateAssetVisualisation(TreeNode node, TreeNode parent) Graphics.SetTranslokatorGridEnabled(trGridIndex, enabled); } } + else + { + Graphics.SetAssetVisibility(refID, node.Checked && node.CheckIfParentsAreValid()); + } } else {