protected VCIsoData m_Iso; // pointer of current editing iso // Functions public virtual void Init(VCESelectVoxel parent) { m_Parent = parent; m_Selecting = false; m_Selection = parent.m_SelectionMgr.m_Selection; m_Iso = VCEditor.s_Scene.m_IsoData; }
public void OnDeleteClick() { if (VCEditor.s_ProtectLock0) { return; } VCEBrush[] brs = VCEditor.Instance.m_BrushGroup.GetComponentsInChildren <VCEBrush>(); foreach (VCEBrush br in brs) { if (br is VCESelectComponent) { VCESelectComponent sel = br as VCESelectComponent; sel.DeleteSelection(); } else if (br is VCESelectVoxel) { VCESelectVoxel sel = br as VCESelectVoxel; sel.DeleteSelection(); } } }