Пример #1
0
 public void UpdateNodes()
 {
     ObjectsTree.Nodes.Clear();
     CharcoalEngine.Object.Transform root = new CharcoalEngine.Object.Transform();
     root.Children = scene.Root.Children;
     UpdateChildren(root, ObjectsTree.Nodes);
 }
Пример #2
0
 public void UpdateChildren(CharcoalEngine.Object.Transform parent, TreeNodeCollection Nodes)
 {
     foreach (CharcoalEngine.Object.Transform obj in parent.Children)
     {
         Nodes.Add(obj.Name);
         Nodes[Nodes.Count - 1].Tag = obj;
         UpdateChildren(obj, Nodes[Nodes.Count - 1].Nodes);
     }
 }