Don't create TreeNode for items marked with @HideFromTreeView
- Issue MatterHackers/MCCentral#5577 Consider if support objects should appear in treeview
This commit is contained in:
parent
86a82badf9
commit
2dd4e27c1f
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
foreach (var child in item.Children)
|
||||
{
|
||||
if (child != null)
|
||||
if (child != null
|
||||
&& !child.GetType().GetCustomAttributes(typeof(HideFromTreeViewAttribute), true).Any())
|
||||
{
|
||||
AddTree(BuildItemView(child), contextNode, keyValues, theme);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue