Ejemplo n.º 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.SetSceneObjectOverrideMaterial(sObjectName, id, selectedUniqueName);
                ((PathLoader)selfRef).model.MaterialUniqueName = selectedUniqueName;
            }
        }
Ejemplo n.º 2
0
 public void Reset(UserControl selfRef, string type, string id)
 {
     IGCore.SetSceneObjectOverrideMaterial(sObjectName, id, "None");
     ((PathLoader)selfRef).model.MaterialUniqueName = "None";
 }