Esempio n. 1
0
 public RigidModel GetModel(string path)
 {
     if (string.IsNullOrEmpty(path))
     {
         return(null);
     }
     try
     {
         return(((IRigidModelFile)ResourceManager.GetDrawable(FileSystem.Resolve(path))).CreateRigidModel(true));
     }
     catch (Exception e)
     {
         FLLog.Error("UiContext", $"{e.Message}\n{e.StackTrace}");
         return(null);
     }
 }