Apply scene selection on Inspector startup
This commit is contained in:
parent
383d45e44d
commit
b89c2e289b
1 changed files with 6 additions and 0 deletions
|
|
@ -39,6 +39,12 @@ namespace MatterHackers.MatterControl
|
||||||
if (view3DWidget.ContainsFocus)
|
if (view3DWidget.ContainsFocus)
|
||||||
{
|
{
|
||||||
tabControl1.SelectedIndex = 1;
|
tabControl1.SelectedIndex = 1;
|
||||||
|
|
||||||
|
if (scene.HasSelection
|
||||||
|
&& sceneTreeNodes.TryGetValue(scene.SelectedItem, out TreeNode treeNodeToSelect))
|
||||||
|
{
|
||||||
|
sceneTreeView.SelectedNode = treeNodeToSelect;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue