Esempio n. 1
0
        public ModelImporter(UTFEditorMain parent, string path)
        {
            this.parent = parent;

            var importForm = new ModelImporterOptions(Path.GetFileNameWithoutExtension(path));

            if (importForm.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }

            Wireframe  = importForm.Wireframe;
            VertexType = importForm.VertexType;
            Relocate   = importForm.Relocate;
            UniqueName = importForm.UniqueName;

            InitCMP(path);
            //InitMAT(path);

            if (Path.GetExtension(path).ToLower() == ".fbx")
            {
                ImportFBX(path);
            }

            CMP.Modified();
            //MAT.Modified();

            //MAT.Show();
            CMP.Show();
        }
Esempio n. 2
0
 public VMeshDataNodeNameFixer(UTFEditorMain parent)
 {
     this.parent = parent;
     InitializeComponent();
     listBoxOptions.SelectedItem = "Scan Only";
 }