private void OnDestroy()
        {
            if (m_editor != null)
            {
                m_editor.Tools.ToolChanged   -= OnEditorToolChanged;
                m_editor.ActiveWindowChanged -= OnActiveWindowChanged;
            }

            if (m_picker != null)
            {
                m_picker.SelectionChanged -= OnPickerSelectionChanged;
            }

            UnsubscribeEvents();

            if (m_selectionComponentState != null)
            {
                m_selectionComponentState.CanSelect(this, true);
                m_selectionComponentState.IsBoxSelectionEnabled(this, true);
                m_selectionComponentState.CanSelectAll(this, true);
            }

            m_selectionComponentState = null;

            EnableSplineRenderers(false);

            IOC.UnregisterFallback <IMeshDeformerTool>(this);
        }
 private void DisallowSelection()
 {
     if (m_selectionComponentState != null)
     {
         m_selectionComponentState.IsBoxSelectionEnabled(this, false);
         m_selectionComponentState.CanSelect(this, false);
         m_selectionComponentState.CanSelectAll(this, false);
     }
 }