DuplicateNode() public method

public DuplicateNode ( TreeNode n ) : TreeNode
n TreeNode
return TreeNode
Esempio n. 1
0
 private void DuplicateSelected(TreeData treeData)
 {
     this.UndoStoreSelected(EditMode.Duplicate);
     if (s_SelectedNode != null)
     {
         s_SelectedNode = treeData.DuplicateNode(s_SelectedNode);
         s_SelectedGroup.Lock();
     }
     else
     {
         this.SelectGroup(treeData.DuplicateGroup(s_SelectedGroup));
     }
     this.m_WantCompleteUpdate = true;
     UpdateMesh(base.target as Tree);
     this.m_WantCompleteUpdate = false;
 }