Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit 5febdeb

Browse files
authored
Merge pull request #116 from Kamzik123/collision-toggling-fix
Fixed collisions not hiding when unchecking their node
2 parents e0a4755 + daf5867 commit 5febdeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mafia2Libs/Forms/MapEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ private void UpdateAssetVisualisation(TreeNode node, TreeNode parent)
370370
Graphics.SetTranslokatorGridEnabled(trGridIndex, enabled);
371371
}
372372
}
373+
else
374+
{
375+
Graphics.SetAssetVisibility(refID, node.Checked && node.CheckIfParentsAreValid());
376+
}
373377
}
374378
else
375379
{

0 commit comments

Comments
 (0)