예제 #1
0
 public static void DeleteModelReference(ModelReference reference)
 {
     References.Remove(reference);
     if (References.All(x => x.Model != reference.Model))
     {
         UnloadModel(reference.Model);
     }
 }
예제 #2
0
        public static ModelReference CreateModelReference(IFile file)
        {
            var model     = LoadModel(file);
            var reference = new ModelReference(file.FullPathName, model);

            References.Add(reference);
            return(reference);
        }