Пример #1
0
        public void Set(UserControl selfRef, string type, string id)
        {
            string selectedPath       = mainWindow.GetBrowserSelectedFilePath();
            string selectedUniqueName = mainWindow.GetBrowserSelectedFileUniqueName();

            if (selectedPath == string.Empty)
            {
                return;
            }
            if (!System.IO.File.Exists(selectedPath))
            {
                return;
            }
            if (System.IO.Path.GetExtension(selectedPath).ToLower() == ".gmat")
            {
                //model.SetMaterialUniqueName(id, selectedUniqueName);
                IGCore.SetMeshSubmeshMaterialUniqueName(sMeshName, id, selectedUniqueName);
                ((PathLoader)selfRef).model.MaterialUniqueName = selectedUniqueName;
            }
        }
Пример #2
0
 public void Reset(UserControl selfRef, string type, string id)
 {
     //model.SetMaterialUniqueName(id, "Default");
     IGCore.SetMeshSubmeshMaterialUniqueName(sMeshName, id, "Default");
     ((PathLoader)selfRef).model.MaterialUniqueName = "Default";
 }