Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 63b4464

Browse files
committed
- [GUI] Highlight nodes that are exportable as fbx.
- [GUI] Add option to toggle between selecting all subnodes or matching only (using `Alt` key).
1 parent ab73046 commit 63b4464

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

AssetStudio.GUI/Components/GameObjectTreeNode.cs

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ public GameObjectTreeNode(GameObject gameObject)
1010
{
1111
this.gameObject = gameObject;
1212
Text = gameObject.m_Name;
13+
if (gameObject.HasModel())
14+
{
15+
BackColor = System.Drawing.Color.LightBlue;
16+
}
1317
}
1418
}
1519
}

AssetStudio.GUI/MainForm.cs

+11-4
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,12 @@ private void treeSearch_KeyDown(object sender, KeyEventArgs e)
609609
foreach (var node in treeSrcResults)
610610
{
611611
var tempNode = node;
612-
while (tempNode.Parent != null)
612+
if (e.Alt)
613613
{
614-
tempNode = tempNode.Parent;
614+
while (tempNode.Parent != null)
615+
{
616+
tempNode = tempNode.Parent;
617+
}
615618
}
616619
tempNode.EnsureVisible();
617620
tempNode.Checked = e.Control;
@@ -625,10 +628,14 @@ private void treeSearch_KeyDown(object sender, KeyEventArgs e)
625628
nextGObject = 0;
626629
}
627630
var node = treeSrcResults[nextGObject];
628-
while (node.Parent != null)
631+
if (e.Alt)
629632
{
630-
node = node.Parent;
633+
while (node.Parent != null)
634+
{
635+
node = node.Parent;
636+
}
631637
}
638+
632639
node.EnsureVisible();
633640
node.Checked = e.Control;
634641
sceneTreeView.SelectedNode = treeSrcResults[nextGObject];

0 commit comments

Comments
 (0)