// -------------------------------------------------------------------- private void AddSceneObjectToTreeNode(TreeNode node, SceneObject sceneObject) { SceneTreeNode objectNode = new SceneTreeNode(sceneObject); if (node == null) { objectNode.ImageIndex = SupportFileFound ? sUpdateAssetIcon : sNewAssetIcon; modelTreeView.Nodes.Add(objectNode); } else { if (SupportFileFound) { objectNode.ImageIndex = mSupportFile.GetMeshId(sceneObject.Id) > 0 ? sUpdateAssetIcon : sNewAssetIcon; } else { objectNode.ImageIndex = sNewAssetIcon; } node.Nodes.Add(objectNode); } objectNode.SelectedImageIndex = objectNode.ImageIndex; sceneObject.ForEachChild((c) => { AddSceneObjectToTreeNode(objectNode, c); }); }