// --------------------------------------------------------------------

        #region UI callbacks

        private void buttonImport_Click(object sender, System.EventArgs e)
        {
        
            if (mCurrentModel == null)
                return;

            if (mCurrentModel.HasMeshes)
                ImportMeshes();

            if (!SupportFileFound)
            {
                OnyxProjectAsset asset = ProjectManager.Instance.Content.AddModel(mSupportFile.FilePath, true, mSupportFile);
                mSupportFile.Guid = asset.Guid;
            }

            AssetStreamLoader<ModelSupportData>.Save(mSupportFile, mSupportFile.FilePath);

            if (MessageBox.Show("Do you want to create an entity from the imported mesh?", "Create Entity", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                CreateEntity();
            }

            ProjectLoader.Save();

            //LoadModel(mCurrentPath);
        }
        // --------------------------------------------------------------------

        private void ReloadSupportFile()
        {
            string modelPath = mCurrentPath;
            string dataPath  = ModelSupportData.GetPath(modelPath);

            if (File.Exists(dataPath))
            {
                mSupportFile = AssetStreamLoader <ModelSupportData> .Load(dataPath, false);
            }
            else
            {
                mSupportFile = new ModelSupportData(ProjectContent.GetRelativePath(modelPath));
            }
        }