private void OnPaletteChanged()
 {
     m_PaletteUsed      = true;
     m_PaletteNeedsSave = true;
     Undo.FlushUndoRecordObjects();
 }