DuplicateGroup() public method

public DuplicateGroup ( TreeGroup g ) : TreeGroup
g TreeGroup
return TreeGroup
Example #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;
 }