Пример #1
0
 public ImageTemplate(ImageTemplate imageTemplate)
   : base(imageTemplate)
 {
   m_DiffuseFilepath = imageTemplate.DiffuseFilepath;
   UpdateMaterial();
   DisableUnusedTransforms();
 }
Пример #2
0
 private static void SaveTemplate(DataElement node, string folder, ImageTemplate template)
 {
   SaveRectTemplate(node, folder, template);
   string relDiffuseFilepath = DirMethods.EvaluateRelativePath(folder, template.DiffuseFilepath);
   node.CreateAttribute("rel_diffuse_filepath", relDiffuseFilepath);
 }